Fix 2to3 fixers to work with Python 3.

This commit is contained in:
Valentin Lorentz 2013-01-06 13:34:13 +01:00
parent ad3bf1302f
commit fee7ed4cd1
4 changed files with 4 additions and 4 deletions

View File

@ -18,5 +18,5 @@ class FixDefIteritems(fixer_base.BaseFix):
def transform(self, node, results):
name = results["name"]
new = Name(u"items", prefix=name.prefix)
new = Name("items", prefix=name.prefix)
name.replace(new)

View File

@ -18,5 +18,5 @@ class FixDefIterkeys(fixer_base.BaseFix):
def transform(self, node, results):
name = results["name"]
new = Name(u"keys", prefix=name.prefix)
new = Name("keys", prefix=name.prefix)
name.replace(new)

View File

@ -18,5 +18,5 @@ class FixDefItervalues(fixer_base.BaseFix):
def transform(self, node, results):
name = results["name"]
new = Name(u"values", prefix=name.prefix)
new = Name("values", prefix=name.prefix)
name.replace(new)

View File

@ -23,5 +23,5 @@ class FixReload(fixer_base.BaseFix):
"""
def transform(self, node, results):
touch_import(u'imp', u'reload', node)
touch_import('imp', u'reload', node)
return node