Skip to content

Commit dafe7a4

Browse files
n-l-iterryjreedy
andauthored
gh-128342: Specify timeout unit in subprocess docstrings (GH-128343)
Specify timeout unit (seconds) in subprocess docstrings Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent 47d2cb8 commit dafe7a4

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)