]> granicus.if.org Git - python/commitdiff
Issue #15148: Fixed typos in shutil.which() docstring
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Sat, 23 Jun 2012 01:56:42 +0000 (21:56 -0400)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Sat, 23 Jun 2012 01:56:42 +0000 (21:56 -0400)
Lib/shutil.py

index 401e9ea4a159439b1bb4680338558f398e139a0c..a130077ece4eebc8bb0c388c25c9e9be27fea0b3 100644 (file)
@@ -972,7 +972,7 @@ def get_terminal_size(fallback=(80, 24)):
     return os.terminal_size((columns, lines))
 
 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."""
     # Check that a given file can be accessed with the correct mode.
     # Additionally check that `file` is not a directory, as on Windows