From e093225c0d9e1ae06cdf8ce6a3d0ed67dc8ea00c Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 23 Nov 2008 19:46:46 +0100 Subject: [PATCH] avoid GCC warning about '/*' in generated C comments --- Cython/Compiler/Code.py | 2 ++ 1 file changed, 2 insertions(+) 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'') -- 2.26.2