mirror of
https://github.com/chubin/cheat.sh.git
synced 2026-06-20 13:16:44 +02:00
utf-8 workaround for python 2.x
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user