ยปCore Development>Code coverage>Lib/lib2to3/fixes/fix_basestring.py

Python code coverage for Lib/lib2to3/fixes/fix_basestring.py

#countcontent
1n/a"""Fixer for basestring -> str."""
2n/a# Author: Christian Heimes
3n/a
4n/a# Local imports
5n/afrom .. import fixer_base
6n/afrom ..fixer_util import Name
7n/a
8n/aclass FixBasestring(fixer_base.BaseFix):
9n/a BM_compatible = True
10n/a
11n/a PATTERN = "'basestring'"
12n/a
13n/a def transform(self, node, results):
14n/a return Name("str", prefix=node.prefix)