Fix utf-8 enforcing hack.
The function getdefaultlocale takes one optional argument, so the replace should behave the same.
This commit is contained in:
parent
e58d0baec3
commit
9a85fd0c97
|
@ -9,7 +9,7 @@ from d3mapbuilder import D3MapBuilder
|
|||
|
||||
# Force encoding to UTF-8
|
||||
import locale # Ensures that subsequent open()s
|
||||
locale.getpreferredencoding = lambda: 'UTF-8' # are UTF-8 encoded.
|
||||
locale.getpreferredencoding = lambda _=None: 'UTF-8' # are UTF-8 encoded.
|
||||
|
||||
import sys
|
||||
#sys.stdin = open('/dev/stdin', 'r')
|
||||
|
|
Loading…
Reference in a new issue