提交 b5e59d3e 编写于 作者: A Alessio Sergi

str.split() does not accept maxsplit as a keyword argument in Python2

上级 ff613348
......@@ -49,7 +49,7 @@ def split_cmdline(cmdline):
# XXX: workaround for psutil issue #742
if LINUX and any(x in cmdline[0] for x in ('chrome', 'chromium')):
try:
exe, arguments = cmdline[0].split(' ', maxsplit=1)
exe, arguments = cmdline[0].split(' ', 1)
path, cmd = os.path.split(exe)
except ValueError:
arguments = None
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册