This commit is contained in:
Veiko Aasa
2018-10-20 13:58:41 +03:00
parent c5e1ddea20
commit 5887e43248
+2 -1
View File
@@ -1288,9 +1288,10 @@ end tell
line = py2exe_getline(filename, lineno, *args, **kwargs)
if not line:
try:
f = open(filename, "r")
f = open(filename, "rb")
try:
for i, line in enumerate(f):
line = line.decode('utf-8')
if lineno == i + 1:
break
else: