mirror of
https://github.com/python/cpython.git
synced 2025-12-11 11:31:05 +00:00
Issue #15148: Fixed typos in shutil.which() docstring
This commit is contained in:
parent
648921371e
commit
de74de5d5d
1 changed files with 1 additions and 1 deletions
|
|
@ -972,7 +972,7 @@ def get_terminal_size(fallback=(80, 24)):
|
||||||
return os.terminal_size((columns, lines))
|
return os.terminal_size((columns, lines))
|
||||||
|
|
||||||
def which(cmd, mode=os.F_OK | os.X_OK, path=None):
|
def which(cmd, mode=os.F_OK | os.X_OK, path=None):
|
||||||
"""Given a file, mode, and a path string, return the path whichs conform
|
"""Given a file, mode, and a path string, return the path which conforms
|
||||||
to the given mode on the path."""
|
to the given mode on the path."""
|
||||||
# Check that a given file can be accessed with the correct mode.
|
# Check that a given file can be accessed with the correct mode.
|
||||||
# Additionally check that `file` is not a directory, as on Windows
|
# Additionally check that `file` is not a directory, as on Windows
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue