]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-128342: Specify timeout unit in subprocess docstrings (GH-128343) (#128366)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 30 Dec 2024 21:14:27 +0000 (22:14 +0100)
committerGitHub <noreply@github.com>
Mon, 30 Dec 2024 21:14:27 +0000 (13:14 -0800)
gh-128342: Specify timeout unit in subprocess docstrings (GH-128343)

Specify timeout unit (seconds) in subprocess docstrings
(cherry picked from commit dafe7a44630aa32bb411cceb45c7b7df725e3fe3)

Co-authored-by: n-l-i <57808975+n-l-i@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/subprocess.py

index 1d17ae3608a51aaf7de5629f69d1f7ee42cdd3d1..881a9ce800ae998793ad752c1593e6e9fed9e57f 100644 (file)
@@ -380,7 +380,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:
 
@@ -517,8 +517,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