fix in ios run python is error

This commit is contained in:
xsker 2018-03-10 15:01:26 +08:00
parent 5b02bce500
commit 44bcf3b210

View File

@ -19,7 +19,10 @@ from .util import log, term
from .util.git import get_version
from .util.strings import get_filename, unescape_html
from . import json_output as json_output_
sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='utf8')
try:
sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='utf8')
except:
pass
SITES = {
'163' : 'netease',