[Python-checkins] cpython: Fix #15148. Capitalize PATH, hopefully leading to less confusion

brian.curtin python-checkins at python.org
Sat Jun 23 05:49:25 CEST 2012


http://hg.python.org/cpython/rev/aa153b827d17
changeset:   77610:aa153b827d17
user:        Brian Curtin <brian at python.org>
date:        Fri Jun 22 22:49:12 2012 -0500
summary:
  Fix #15148. Capitalize PATH, hopefully leading to less confusion

files:
  Lib/shutil.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/shutil.py b/Lib/shutil.py
--- a/Lib/shutil.py
+++ b/Lib/shutil.py
@@ -972,7 +972,7 @@
     return os.terminal_size((columns, lines))
 
 def which(cmd, mode=os.F_OK | os.X_OK, path=None):
-    """Given a command, mode, and a path string, return the path which
+    """Given a command, mode, and a PATH string, return the path which
     conforms to the given mode on the PATH, or None if there is no such file.
     `mode` defaults to os.F_OK | os.X_OK. `path` defaults to the result of
     os.environ.get("PATH"), or can be overridden with a custom search path."""

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list