mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-27 13:12:45 +01:00
Fix 2to3 fixers to work with Python 3.
This commit is contained in:
parent
ad3bf1302f
commit
fee7ed4cd1
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user