From: Thierry Parmentelat Date: Thu, 15 Oct 2015 16:33:11 +0000 (+0200) Subject: fixed 2 bugs/typos found through testing X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=8061264f9a8fc2637df128f3f7f40a33cac9729f;p=nepi.git 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 20e0007b..421c9b42 100644 --- a/src/nepi/util/sshfuncs.py +++ b/src/nepi/util/sshfuncs.py @@ -555,7 +555,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