From 1b65779a9c180c8e4f2be661dc6f2f97b49b5e2d Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 18 Oct 2009 17:58:18 +0200 Subject: [PATCH] fix source comments for non-ASCII characters --- Cython/Compiler/Code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2