From: Stefan Behnel Date: Wed, 14 May 2008 19:16:45 +0000 (+0200) Subject: importing a module named by a unicode string seems to work equally well in Py2 and Py3 X-Git-Tag: 0.9.8rc1~37^2~84 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5c74d3d8cadbe5a1357508b0ebe98ef3fc2837cb;p=cython.git importing a module named by a unicode string seems to work equally well in Py2 and Py3 --- diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index b8ad781b..803879ee 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -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),