10000 bpo-37689: add Path.is_relative_to() method by shihai1991 · Pull Request #14982 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-37689: add Path.is_relative_to() method #14982

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 13, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update docs
  • Loading branch information
shihai1991 committed Aug 13, 2019
commit 3a42052f7723531fc07abc331b27e70546823b47
1 change: 0 additions & 1 deletion Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,6 @@ Pure paths provide the following methods and properties:

Return whether or not this path is relative to the *other* path.

>>> from pathlib import PurePath
>>> p = PurePath('/etc/passwd')
>>> p.is_relative_to('/etc')
True
Expand Down
0