Commit 9341dc72 authored by Stefan Behnel's avatar Stefan Behnel

small fix

parent 04234b00
......@@ -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))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment