From: Thierry Parmentelat Date: Thu, 15 Oct 2015 16:33:11 +0000 (+0200) Subject: fixed 2 bugs/typos found through testing X-Git-Tag: nepi-6.0.0-pypi~17 X-Git-Url: http://git.onelab.eu/?p=nepi.git;a=commitdiff_plain;h=02b8bd8fed84b9fdcc0daad93cbfc3fb8560135b fixed 2 bugs/typos found through testing --- diff --git a/src/nepi/util/execfuncs.py b/src/nepi/util/execfuncs.py index 1f7b6b9b..70cec88c 100644 --- a/src/nepi/util/execfuncs.py +++ b/src/nepi/util/execfuncs.py @@ -179,7 +179,7 @@ def lgetpid(pidfile): if out: try: - return [ int(x) for x in out.strip().split(' ',1))] + return [ int(x) for x in out.strip().split(' ', 1) ] except: # Ignore, many ways to fail that don't matter that much return None diff --git a/src/nepi/util/sshfuncs.py b/src/nepi/util/sshfuncs.py index 0d0c17dc..7587e97e 100644 --- a/src/nepi/util/sshfuncs.py +++ b/src/nepi/util/sshfuncs.py @@ -554,7 +554,7 @@ def rgetpid(pidfile, if out: try: - return [ int(x) for x in out.strip().split(' ',1)) ] + return [ int(x) for x in out.strip().split(' ', 1) ] except: # Ignore, many ways to fail that don't matter that much return None