提交 16a066c2 编写于 作者: Y Yang Zhang 提交者: qingqing01

Fix `maxsplit` error in py2 (#2977)

上级 c089b67b
......@@ -63,7 +63,7 @@ class ArgsParser(ArgumentParser):
return config
for s in opts:
s = s.strip()
k, v = s.split('=', maxsplit=1)
k, v = s.split('=', 1)
if '.' not in k:
config[k] = yaml.load(v, Loader=yaml.Loader)
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册