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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user