bpo-41661: Document os.path.relpath() exception on Windows with different drives (GH-25346)

This commit is contained in:
Zackery Spytz 2021-04-12 09:39:31 -06:00 committed by GitHub
parent e126547c07
commit 67c0b3d89c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -366,7 +366,8 @@ the :mod:`glob` module.)
Return a relative filepath to *path* either from the current directory or
from an optional *start* directory. This is a path computation: the
filesystem is not accessed to confirm the existence or nature of *path* or
*start*.
*start*. On Windows, :exc:`ValueError` is raised when *path* and *start*
are on different drives.
*start* defaults to :attr:`os.curdir`.