summaryrefslogtreecommitdiffstats
path: root/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_basestring.py
diff options
context:
space:
mode:
Diffstat (limited to 'AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_basestring.py')
-rw-r--r--AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_basestring.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_basestring.py b/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_basestring.py
new file mode 100644
index 0000000000..54f06e40b9
--- /dev/null
+++ b/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_basestring.py
@@ -0,0 +1,14 @@
+"""Fixer for basestring -> str."""
+# Author: Christian Heimes
+
+# Local imports
+from .. import fixer_base
+from ..fixer_util import Name
+
+class FixBasestring(fixer_base.BaseFix):
+ BM_compatible = True
+
+ PATTERN = "'basestring'"
+
+ def transform(self, node, results):
+ return Name(u"str", prefix=node.prefix)