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
1 changed files with 3 additions and 2 deletions

View File

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