提交 389346fa 编写于 作者: W wangjiawei04

fix gbk in win

上级 702dc165
...@@ -333,7 +333,7 @@ class ServerYamlConfChecker(object): ...@@ -333,7 +333,7 @@ class ServerYamlConfChecker(object):
raise SystemExit("Failed to prepare_server: only one of yml_file" raise SystemExit("Failed to prepare_server: only one of yml_file"
" or yml_dict can be selected as the parameter.") " or yml_dict can be selected as the parameter.")
if yml_file is not None: if yml_file is not None:
with open(yml_file) as f: with open(yml_file, encoding='utf-8') as f:
conf = yaml.load(f.read()) conf = yaml.load(f.read())
elif yml_dict is not None: elif yml_dict is not None:
conf = yml_dict conf = yml_dict
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册