From: Stefan Behnel Date: Thu, 1 May 2008 06:17:55 +0000 (+0200) Subject: small fix X-Git-Tag: 0.9.6.14~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9341dc72ff10ae78490e8f1adc673cb37bcc485f;p=cython.git small fix --- diff --git a/Cython/Utils.py b/Cython/Utils.py index a6fd0577..8faa29eb 100644 --- a/Cython/Utils.py +++ b/Cython/Utils.py @@ -44,7 +44,7 @@ def detect_file_encoding(source_filename): chars = [] for i in range(2): c = f.read(1) - while c and c != '\n': + while c and c != u'\n': chars.append(c) c = f.read(1) encoding = _match_file_encoding(u''.join(chars))