Skip to content

Commit

Permalink
pythongh-128342: Specify timeout unit in subprocess docstrings (pytho…
Browse files Browse the repository at this point in the history
…nGH-128343)

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

Co-authored-by: n-l-i <57808975+n-l-i@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
  • Loading branch information
2 people authored and miss-islington committed Dec 30, 2024
1 parent 5a892cb commit ec3694c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/subprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ec3694c

Please sign in to comment.