Home | History | Annotate | Download | only in fixes
      1 """Fixer for basestring -> str."""
      2 # Author: Christian Heimes
      3 
      4 # Local imports
      5 from .. import fixer_base
      6 from ..fixer_util import Name
      7 
      8 class FixBasestring(fixer_base.BaseFix):
      9     BM_compatible = True
     10 
     11     PATTERN = "'basestring'"
     12 
     13     def transform(self, node, results):
     14         return Name(u"str", prefix=node.prefix)
     15