Merge pull request #146 from ekimekim/mike/unicode/hack

Automatically set default encoding to utf-8 when common is imported
pull/148/head
Mike Lang 5 years ago committed by GitHub
commit 7b6f691d63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,6 +2,13 @@
"""A place for common utilities between wubloader components"""
# HACK: This sets the default encoding for the entire process.
# It is possible this may break (badly-written) third party libs.
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import datetime
import errno
import os

Loading…
Cancel
Save