Skip to content

Commit 409a1be

Browse files
committed
improve start default for relpath
1 parent 2f31b4b commit 409a1be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/os.path.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ the :mod:`glob` module.)
242242
links encountered in the path (if they are supported by the operating system).
243243

244244

245-
.. function:: relpath(path, start=None)
245+
.. function:: relpath(path, start=os.curdir)
246246

247247
Return a relative filepath to *path* either from the current directory or
248248
from an optional *start* directory. This is a path computation: the

0 commit comments

Comments
 (0)