Skip to content

Commit 62729d7

Browse files
miss-islingtonn-l-iterryjreedy
authored
[3.13] gh-128342: Specify timeout unit in subprocess docstrings (GH-128343) (#128365)
gh-128342: Specify timeout unit in subprocess docstrings (GH-128343) Specify timeout unit (seconds) in subprocess docstrings (cherry picked from commit dafe7a4) Co-authored-by: n-l-i <[email protected]> Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent 5a892cb commit 62729d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/subprocess.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def _text_encoding():
386386

387387
def call(*popenargs, timeout=None, **kwargs):
388388
"""Run command with arguments. Wait for command to complete or
389-
timeout, then return the returncode attribute.
389+
for timeout seconds, then return the returncode attribute.
390390
391391
The arguments are the same as for the Popen constructor. Example:
392392
@@ -523,8 +523,8 @@ def run(*popenargs,
523523
in the returncode attribute, and output & stderr attributes if those streams
524524
were captured.
525525
526-
If timeout is given, and the process takes too long, a TimeoutExpired
527-
exception will be raised.
526+
If timeout (seconds) is given and the process takes too long,
527+
a TimeoutExpired exception will be raised.
528528
529529
There is an optional argument "input", allowing you to
530530
pass bytes or a string to the subprocess's stdin. If you use this argument

0 commit comments

Comments
 (0)