projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04234b0
)
small fix
author
Stefan Behnel
<scoder@users.berlios.de>
Thu, 1 May 2008 06:17:55 +0000
(08:17 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Thu, 1 May 2008 06:17:55 +0000
(08:17 +0200)
Cython/Utils.py
patch
|
blob
|
history
diff --git
a/Cython/Utils.py
b/Cython/Utils.py
index a6fd0577193889fc48bc1927673f58d2cd755f8e..8faa29eb669c8138c68f99cfeb1aab99d53017b4 100644
(file)
--- 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))