summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorn-l-i <57808975+n-l-i@users.noreply.github.com>2024-12-30 20:52:04 (GMT)
committerGitHub <noreply@github.com>2024-12-30 20:52:04 (GMT)
commitdafe7a44630aa32bb411cceb45c7b7df725e3fe3 (patch)
tree4ae189f8cb90df116e48e24294e99f22691f8f25 /Lib
parent47d2cb8eb7595df5940225867dbb66b6dd59413a (diff)
downloadcpython-dafe7a44630aa32bb411cceb45c7b7df725e3fe3.zip
cpython-dafe7a44630aa32bb411cceb45c7b7df725e3fe3.tar.gz
cpython-dafe7a44630aa32bb411cceb45c7b7df725e3fe3.tar.bz2
gh-128342: Specify timeout unit in subprocess docstrings (GH-128343)
Specify timeout unit (seconds) in subprocess docstrings Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib')
-rw-r--r--Lib/subprocess.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index 88f0230..de88eed 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -386,7 +386,7 @@ def _text_encoding():
def call(*popenargs, timeout=None, **kwargs):
"""Run command with arguments. Wait for command to complete or
- timeout, then return the returncode attribute.
+ for timeout seconds, then return the returncode attribute.
The arguments are the same as for the Popen constructor. Example:
@@ -523,8 +523,8 @@ def run(*popenargs,
in the returncode attribute, and output & stderr attributes if those streams
were captured.
- If timeout is given, and the process takes too long, a TimeoutExpired
- exception will be raised.
+ If timeout (seconds) is given and the process takes too long,
+ a TimeoutExpired exception will be raised.
There is an optional argument "input", allowing you to
pass bytes or a string to the subprocess's stdin. If you use this argument