parent
971b602773
commit
124ebda58c
1 changed files with 1 additions and 0 deletions
|
@ -52,6 +52,7 @@ if sys.version_info[0] == 2:
|
|||
def python_2_unicode_compatible(klass):
|
||||
klass.__unicode__ = klass.__str__
|
||||
klass.__str__ = lambda self: self.__unicode__().encode('utf-8')
|
||||
return klass
|
||||
|
||||
# Enforce subprocesses to use 'utf-8' in Python 2
|
||||
reload(sys)
|
||||
|
|
Loading…
Reference in a new issue