From 9341dc72ff10ae78490e8f1adc673cb37bcc485f Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 1 May 2008 08:17:55 +0200 Subject: [PATCH] small fix --- Cython/Utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.26.2