Fix obscure unicode error related to PEP 263 work.
authorRobert Bradshaw <robertwb@math.washington.edu>
Mon, 28 Apr 2008 19:58:02 +0000 (12:58 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Mon, 28 Apr 2008 19:58:02 +0000 (12:58 -0700)
Cython/Compiler/Parsing.py

index d86cc0185c9fc9b35807eab300c182442e937168..b4133efb9d5301c62dc60e27f763e197dd4cd8fc 100644 (file)
@@ -912,7 +912,7 @@ def p_import_statement(s):
         else:
             if as_name and "." in dotted_name:
                 name_list = ExprNodes.ListNode(pos, args = [
-                    ExprNodes.StringNode(pos, value = "*")])
+                    ExprNodes.StringNode(pos, value = Utils.EncodedString("*"))])
             else:
                 name_list = None
             dotted_name = Utils.EncodedString(dotted_name)