From 8061264f9a8fc2637df128f3f7f40a33cac9729f Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 15 Oct 2015 18:33:11 +0200 Subject: [PATCH] fixed 2 bugs/typos found through testing --- src/nepi/util/execfuncs.py | 2 +- src/nepi/util/sshfuncs.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.0