Commit 5c74d3d8 authored by Stefan Behnel's avatar Stefan Behnel

importing a module named by a unicode string seems to work equally well in Py2 and Py3

parent da870f24
...@@ -916,7 +916,6 @@ def p_import_statement(s): ...@@ -916,7 +916,6 @@ def p_import_statement(s):
else: else:
name_list = None name_list = None
dotted_name = Utils.EncodedString(dotted_name) dotted_name = Utils.EncodedString(dotted_name)
dotted_name.encoding = s.source_encoding
stat = Nodes.SingleAssignmentNode(pos, stat = Nodes.SingleAssignmentNode(pos,
lhs = ExprNodes.NameNode(pos, lhs = ExprNodes.NameNode(pos,
name = as_name or target_name), name = as_name or target_name),
......
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