From b5e59d3e3ab673a8c02616204eaab4f1869e1b9c Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 4 Apr 2016 20:34:02 +0200 Subject: [PATCH] str.split() does not accept maxsplit as a keyword argument in Python2 --- glances/plugins/glances_processlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glances/plugins/glances_processlist.py b/glances/plugins/glances_processlist.py index c0fddb3b..d7db79d2 100644 --- a/glances/plugins/glances_processlist.py +++ b/glances/plugins/glances_processlist.py @@ -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