mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 07:38:21 +00:00
Only include BOM if it isn't already present.
This commit is contained in:
parent
b5092c0be2
commit
fba40123e1
1 changed files with 2 additions and 1 deletions
1
main.py
1
main.py
|
@ -707,6 +707,7 @@ def main(argv):
|
|||
del script_header, script_timestamp
|
||||
|
||||
if bom:
|
||||
if not script.startswith(b'\xEF\xBB\xBF'):
|
||||
script = b'\xEF\xBB\xBF' + script
|
||||
|
||||
if outfile == '-':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue