Py3 fix
authorStefan Behnel <scoder@users.berlios.de>
Sun, 5 Jul 2009 19:08:58 +0000 (21:08 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 5 Jul 2009 19:08:58 +0000 (21:08 +0200)
Cython/Compiler/Code.py

index 49f2f1e52743523757a259aaf1babb2270e4ebbb..ed83c9c28d01c1ebbd5405fabb479ee17abdc5d0 100644 (file)
@@ -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