From: Stefan Behnel Date: Thu, 20 Aug 2009 20:41:37 +0000 (+0200) Subject: Py3.1 fix X-Git-Tag: 0.12.alpha0~249 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6f790c8fbd3a6ba06a65b60603ad42716c8cd91e;p=cython.git Py3.1 fix --- diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 885b8518..f4083995 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -1950,6 +1950,8 @@ def p_opt_cname(s): literal = p_opt_string_literal(s) if literal: _, cname = literal + cname = EncodedString(cname) + cname.encoding = s.source_encoding else: cname = None return cname