]> granicus.if.org Git - python/commitdiff
improve start default for relpath
authorBenjamin Peterson <benjamin@python.org>
Thu, 20 Mar 2014 17:39:53 +0000 (12:39 -0500)
committerBenjamin Peterson <benjamin@python.org>
Thu, 20 Mar 2014 17:39:53 +0000 (12:39 -0500)
Doc/library/os.path.rst

index 3771ab06f59ca6ac0620a619a58d66bf9a5d4476..6b3a3b64915ad93fd486f8b25e29801e5d2ac4a3 100644 (file)
@@ -242,7 +242,7 @@ the :mod:`glob` module.)
    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