From 02b8bd8fed84b9fdcc0daad93cbfc3fb8560135b 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 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 -- 2.43.0