SIGN IN SIGN UP

gh-99029: Fix handling of `PureWindowsPath('C:\<blah>').relative_to('C:')` (GH-99031)

`relative_to()` now treats naked drive paths as relative. This brings its
behaviour in line with other parts of pathlib, and with `ntpath.relpath()`,
and so allows us to factor out the pathlib-specific implementation.
B
Barney Gale committed
ae234fbc5ce045066448f2f0cda2f1c3c7ddebea
Parent: 7d2dcc5
Committed by GitHub <noreply@github.com> on 11/25/2022, 7:15:57 PM