utf-8 workaround for python 2.x

This commit is contained in:
Igor Chubin 2019-07-07 11:02:09 +00:00
parent eced83f011
commit 8f78c783fe

View file

@ -16,6 +16,12 @@ Configuration parameters:
from __future__ import print_function
import sys
if sys.version_info[0] < 3:
reload(sys)
sys.setdefaultencoding('utf8')
from gevent.monkey import patch_all
from gevent.pywsgi import WSGIServer
patch_all()