summaryrefslogtreecommitdiffstats
path: root/contrib/python/ipython/py3/IPython/utils/_process_cli.py
diff options
context:
space:
mode:
authorAlexander Smirnov <[email protected]>2024-12-19 08:16:17 +0000
committerAlexander Smirnov <[email protected]>2024-12-19 08:16:17 +0000
commitc1c806d731fa634503bf452ee3c603ed956abe2c (patch)
treef2a69c7615b518119f1c895672544ce8ad1a4fe4 /contrib/python/ipython/py3/IPython/utils/_process_cli.py
parent892a954b648dfce3da44ad433b2258e303b08b06 (diff)
parentbb0840c0025a75dd3b85b746ebcec7deb7d9fe1c (diff)
Merge branch 'rightlib' into mergelibs-241219-0815
Diffstat (limited to 'contrib/python/ipython/py3/IPython/utils/_process_cli.py')
-rw-r--r--contrib/python/ipython/py3/IPython/utils/_process_cli.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/python/ipython/py3/IPython/utils/_process_cli.py b/contrib/python/ipython/py3/IPython/utils/_process_cli.py
index 86e918a8d02..e303202e8ad 100644
--- a/contrib/python/ipython/py3/IPython/utils/_process_cli.py
+++ b/contrib/python/ipython/py3/IPython/utils/_process_cli.py
@@ -35,6 +35,7 @@ def system(cmd):
# Start up process:
reg = System.Diagnostics.Process.Start(psi)
+
def getoutput(cmd):
"""
getoutput(cmd) should work in a cli environment on Mac OSX, Linux,
@@ -53,6 +54,7 @@ def getoutput(cmd):
error = myError.ReadToEnd()
return output
+
def check_pid(pid):
"""
Check if a process with the given PID (pid) exists
@@ -66,4 +68,4 @@ def check_pid(pid):
return True
except System.ArgumentException:
# process with given pid isn't running
- return False
+ return False