fix(bin/linja): return the new klass

Closes #406.
This commit is contained in:
Favonia 2015-01-23 13:14:02 -05:00
parent 971b602773
commit 124ebda58c

View file

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