summaryrefslogtreecommitdiff
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2022-11-25 19:15:57 +0000
committerGitHub <noreply@github.com>2022-11-25 11:15:57 -0800
commitae234fbc5ce045066448f2f0cda2f1c3c7ddebea (patch)
treed6ae5bf83f31bb68927a75f1f2e7172062797771 /Objects/longobject.c
parent7d2dcc53d09fe903329926bf7bbfe460b1465dab (diff)
downloadcpython-git-ae234fbc5ce045066448f2f0cda2f1c3c7ddebea.tar.gz
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.
Diffstat (limited to 'Objects/longobject.c')
0 files changed, 0 insertions, 0 deletions