Python code coverage for Lib/lib2to3/fixes/fix_standarderror.py
# | count | content |
---|---|---|
1 | n/a | # Copyright 2007 Google, Inc. All Rights Reserved. |
2 | n/a | # Licensed to PSF under a Contributor Agreement. |
3 | n/a | |
4 | n/a | """Fixer for StandardError -> Exception.""" |
5 | n/a | |
6 | n/a | # Local imports |
7 | n/a | from .. import fixer_base |
8 | n/a | from ..fixer_util import Name |
9 | n/a | |
10 | n/a | |
11 | n/a | class FixStandarderror(fixer_base.BaseFix): |
12 | n/a | BM_compatible = True |
13 | n/a | PATTERN = """ |
14 | n/a | 'StandardError' |
15 | n/a | """ |
16 | n/a | |
17 | n/a | def transform(self, node, results): |
18 | n/a | return Name("Exception", prefix=node.prefix) |