Commit e093225c authored by Stefan Behnel's avatar Stefan Behnel

avoid GCC warning about '/*' in generated C comments

parent e8f3c9e5
......@@ -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'')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment