Skip to content
Permalink
Browse files

utf-8 workaround for python 2.x

  • Loading branch information
chubin committed Jul 7, 2019
1 parent eced83f commit 8f78c783fe83e42ba7887f4fcd8570fd43f4c800
Showing with 6 additions and 0 deletions.
  1. +6 −0 bin/srv.py
@@ -16,6 +16,12 @@

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

0 comments on commit 8f78c78

Please sign in to comment.
You can’t perform that action at this time.