From: Stefan Behnel Date: Sun, 18 Oct 2009 15:58:18 +0000 (+0200) Subject: fix source comments for non-ASCII characters X-Git-Tag: 0.13.beta0~2^2~121^2~14 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=1b65779a9c180c8e4f2be661dc6f2f97b49b5e2d;p=cython.git fix source comments for non-ASCII characters --- diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py index 23f5cf60..45b880f9 100644 --- a/Cython/Compiler/Code.py +++ b/Cython/Compiler/Code.py @@ -749,7 +749,7 @@ class GlobalState(object): u'/*', u'/[inserted by cython to avoid comment start]*' ) for line in source_desc.get_lines(encoding='ASCII', - error_handling='replace')] + error_handling='ignore')] if len(F) == 0: F.append(u'') self.input_file_contents[source_desc] = F return F