mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2024-11-21 14:18:57 -07:00
Fix codec problem on MSW
This commit is contained in:
parent
326091624c
commit
65f217afa8
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,10 @@
|
|||
|
||||
# String <-> Bytes conversion and output utilities
|
||||
|
||||
# Microsoft again not following standards. Sigh.
|
||||
import codecs
|
||||
codecs.register(lambda x: codecs.lookup('utf8') if x == 'cp65001' else None)
|
||||
|
||||
import sys
|
||||
if sys.hexversion >= 0x3000000:
|
||||
unicode = str
|
||||
|
|
Loading…
Reference in a new issue