From 75289aca47dd25fbde9b0864227f5b0f06d62eff Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 5 Jul 2009 21:08:58 +0200 Subject: [PATCH] Py3 fix --- Cython/Compiler/Code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2