1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-06-01 18:41:32 +00:00

Fix for linefeeds on python 3.x

This commit is contained in:
Sam Colwell 2019-02-09 21:36:38 -05:00
parent 853968efbc
commit 631f7eda74

View File

@ -187,8 +187,9 @@ else:
except: except:
pass pass
if char == "\n": # Convert linefeeds to carriage returns.
char = "\r" if char != '' and ord(char) == 10:
char = '\r'
return char return char