mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
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:
parent
9e0ed0521b
commit
b8f73bb5e1
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue