• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""Fixer for basestring -> str."""
2# Author: Christian Heimes
3
4# Local imports
5from .. import fixer_base
6from ..fixer_util import Name
7
8class 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