From: Thomas Hunger Date: Tue, 9 Oct 2007 15:20:56 +0000 (+0200) Subject: bugfix: avoid emitting code that closes a comment in the annotation comment X-Git-Tag: 0.9.6.14~29^2~127 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=e786cf6f75b378f6d67642ffb3c9d45efa27724b;p=cython.git bugfix: avoid emitting code that closes a comment in the annotation comment --- diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py index b2278849..7c54d6ff 100644 --- a/Cython/Compiler/Code.py +++ b/Cython/Compiler/Code.py @@ -85,7 +85,8 @@ class CCodeWriter: try: return self.input_file_contents[file] except KeyError: - F = open(file).readlines() + F = [line.replace('*/', '*[inserted by cython to avoid comment closer]/') + for line in open(file).readlines()] self.input_file_contents[file] = F return F