[Python-checkins] cpython (3.4): improve start default for relpath

benjamin.peterson python-checkins at python.org
Thu Mar 20 18:40:25 CET 2014


http://hg.python.org/cpython/rev/9e0626766ac0
changeset:   89887:9e0626766ac0
branch:      3.4
parent:      89884:3afa9116859c
user:        Benjamin Peterson <benjamin at python.org>
date:        Thu Mar 20 12:39:53 2014 -0500
summary:
  improve start default for relpath

files:
  Doc/library/os.path.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst
--- a/Doc/library/os.path.rst
+++ b/Doc/library/os.path.rst
@@ -242,7 +242,7 @@
    links encountered in the path (if they are supported by the operating system).
 
 
-.. function:: relpath(path, start=None)
+.. function:: relpath(path, start=os.curdir)
 
    Return a relative filepath to *path* either from the current directory or
    from an optional *start* directory.  This is a path computation:  the

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


More information about the Python-checkins mailing list