small fix
authorStefan Behnel <scoder@users.berlios.de>
Thu, 1 May 2008 06:17:55 +0000 (08:17 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 1 May 2008 06:17:55 +0000 (08:17 +0200)
Cython/Utils.py

index a6fd0577193889fc48bc1927673f58d2cd755f8e..8faa29eb669c8138c68f99cfeb1aab99d53017b4 100644 (file)
@@ -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))