Skip to content

Commit fcc9bc4

Browse files
miss-islingtonn-l-iterryjreedy
authored
[3.12] gh-128342: Specify timeout unit in subprocess docstrings (GH-128343) (#128366)
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 4ddee55 commit fcc9bc4

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
@@ -380,7 +380,7 @@ def _text_encoding():
380380

381381
def call(*popenargs, timeout=None, **kwargs):
382382
"""Run command with arguments. Wait for command to complete or
383-
timeout, then return the returncode attribute.
383+
for timeout seconds, then return the returncode attribute.
384384
385385
The arguments are the same as for the Popen constructor. Example:
386386
@@ -517,8 +517,8 @@ def run(*popenargs,
517517
in the returncode attribute, and output & stderr attributes if those streams
518518
were captured.
519519
520-
If timeout is given, and the process takes too long, a TimeoutExpired
521-
exception will be raised.
520+
If timeout (seconds) is given and the process takes too long,
521+
a TimeoutExpired exception will be raised.
522522
523523
There is an optional argument "input", allowing you to
524524
pass bytes or a string to the subprocess's stdin. If you use this argument

0 commit comments

Comments
 (0)