importing a module named by a unicode string seems to work equally well in Py2 and Py3
authorStefan Behnel <scoder@users.berlios.de>
Wed, 14 May 2008 19:16:45 +0000 (21:16 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Wed, 14 May 2008 19:16:45 +0000 (21:16 +0200)
Cython/Compiler/Parsing.py

index b8ad781ba9080d804c51d9a6bb2ea9ad4e88866a..803879eea61ae6b2d15ffab45636c71ebb6c381d 100644 (file)
@@ -916,7 +916,6 @@ def p_import_statement(s):
             else:
                 name_list = None
             dotted_name = Utils.EncodedString(dotted_name)
-            dotted_name.encoding = s.source_encoding
             stat = Nodes.SingleAssignmentNode(pos,
                 lhs = ExprNodes.NameNode(pos, 
                     name = as_name or target_name),