From: Stefan Behnel Date: Sun, 23 Nov 2008 18:46:46 +0000 (+0100) Subject: avoid GCC warning about '/*' in generated C comments X-Git-Tag: 0.11-beta~225 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e093225c0d9e1ae06cdf8ce6a3d0ed67dc8ea00c;p=cython.git avoid GCC warning about '/*' in generated C comments --- diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py index 13bf3145..f83b800c 100644 --- a/Cython/Compiler/Code.py +++ b/Cython/Compiler/Code.py @@ -336,6 +336,8 @@ class GlobalState(object): except KeyError: F = [u' * ' + line.rstrip().replace( 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 for line in source_desc.get_lines()] if len(F) == 0: F.append(u'')