Don't open the script in binary mode, open it in text mode.

Not too sure about this change, but it eliminates CRs before LFs.
This commit is contained in:
Sei Lisa 2015-03-15 02:18:01 +01:00
parent 9e0ed0521b
commit b8f73bb5e1

View file

@ -2367,7 +2367,7 @@ list lazy_list_set(list L, integer i, list v)
def parsefile(self, filename, options = set()):
"""Convenience function to parse a file"""
f = open(filename, 'rb')
f = open(filename, 'r')
try:
script = f.read()
finally: