Commit ed43f672 authored by Martin v. Löwis's avatar Martin v. Löwis

unicode->str.

parent 71abaa93
...@@ -25,11 +25,11 @@ class FixImport(basefix.BaseFix): ...@@ -25,11 +25,11 @@ class FixImport(basefix.BaseFix):
def transform(self, node, results): def transform(self, node, results):
imp = results['imp'] imp = results['imp']
if unicode(imp).startswith('.'): if str(imp).startswith('.'):
# Already a new-style import # Already a new-style import
return return
if not probably_a_local_import(unicode(imp), self.filename): if not probably_a_local_import(str(imp), self.filename):
# I guess this is a global import -- skip it! # I guess this is a global import -- skip it!
return return
......
...@@ -31,7 +31,7 @@ class FixItertoolsImports(basefix.BaseFix): ...@@ -31,7 +31,7 @@ class FixItertoolsImports(basefix.BaseFix):
else: else:
remove_comma ^= True remove_comma ^= True
if unicode(children[-1]) == ',': if str(children[-1]) == ',':
children[-1].remove() children[-1].remove()
# If there is nothing left, return a blank line # If there is nothing left, return a blank line
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment