From: Stefan Behnel Date: Sun, 5 Jul 2009 19:08:58 +0000 (+0200) Subject: Py3 fix X-Git-Tag: 0.12.alpha0~266 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=75289aca47dd25fbde9b0864227f5b0f06d62eff;p=cython.git Py3 fix --- diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py index 49f2f1e5..ed83c9c2 100644 --- a/Cython/Compiler/Code.py +++ b/Cython/Compiler/Code.py @@ -697,7 +697,7 @@ class GlobalState(object): u'*/', u'*[inserted by cython to avoid comment closer]/' ).replace( u'/*', u'/[inserted by cython to avoid comment start]*' - ).encode('ASCII', 'replace') # + Py2 auto-decode to unicode + ).encode('ASCII', 'replace').decode('ASCII') for line in source_desc.get_lines()] if len(F) == 0: F.append(u'') self.input_file_contents[source_desc] = F