summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/fixes/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/lib2to3/fixes/util.py')
-rw-r--r--Lib/lib2to3/fixes/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib2to3/fixes/util.py b/Lib/lib2to3/fixes/util.py
index ef809af..806bf28 100644
--- a/Lib/lib2to3/fixes/util.py
+++ b/Lib/lib2to3/fixes/util.py
@@ -323,7 +323,7 @@ def _is_import_binding(node, name, package=None):
elif node.type == syms.import_from:
# unicode(...) is used to make life easier here, because
# from a.b import parses to ['import', ['a', '.', 'b'], ...]
- if package and unicode(node.children[1]).strip() != package:
+ if package and str(node.children[1]).strip() != package:
return None
n = node.children[3]
if package and _find('as', n):