From 6f790c8fbd3a6ba06a65b60603ad42716c8cd91e Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 20 Aug 2009 22:41:37 +0200 Subject: [PATCH] Py3.1 fix --- Cython/Compiler/Parsing.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.26.2