Fix codec problem on MSW

This commit is contained in:
Sei Lisa 2019-01-31 11:49:31 +01:00
parent 326091624c
commit 65f217afa8

View file

@ -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