Python code coverage for Lib/lib2to3/fixes/fix_basestring.py
# | count | content |
---|---|---|
1 | n/a | """Fixer for basestring -> str.""" |
2 | n/a | # Author: Christian Heimes |
3 | n/a | |
4 | n/a | # Local imports |
5 | n/a | from .. import fixer_base |
6 | n/a | from ..fixer_util import Name |
7 | n/a | |
8 | n/a | class FixBasestring(fixer_base.BaseFix): |
9 | n/a | BM_compatible = True |
10 | n/a | |
11 | n/a | PATTERN = "'basestring'" |
12 | n/a | |
13 | n/a | def transform(self, node, results): |
14 | n/a | return Name("str", prefix=node.prefix) |