diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-03-19 05:33:36 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-03-19 05:33:36 (GMT) |
commit | 8a5f8ca33b56db9af973d1f34a9b3df5271b56c0 (patch) | |
tree | 55b17647085ff8b679f2bea803545884148c66e4 /Lib/lib2to3/fixes/util.py | |
parent | f733c60d9aea123a46cd41dbe4dedee7aa2f20f3 (diff) | |
download | cpython-8a5f8ca33b56db9af973d1f34a9b3df5271b56c0.zip cpython-8a5f8ca33b56db9af973d1f34a9b3df5271b56c0.tar.gz cpython-8a5f8ca33b56db9af973d1f34a9b3df5271b56c0.tar.bz2 |
Run 2to3 on this library.
Diffstat (limited to 'Lib/lib2to3/fixes/util.py')
-rw-r--r-- | Lib/lib2to3/fixes/util.py | 2 |
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): |