source: python/trunk/Lib/lib2to3/fixes/fix_basestring.py

Last change on this file was 391, checked in by dmik, 11 years ago

python: Merge vendor 2.7.6 to trunk.

  • Property svn:eol-style set to native
File size: 321 bytes
Line 
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)
Note: See TracBrowser for help on using the repository browser.