diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-05-26 18:42:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-26 18:42:36 (GMT) |
commit | 305d78b71481e309051b1b88f363805d8c0ad34a (patch) | |
tree | 196b919be2dd7bab2bb85d4d423e33f3503a55bb /Modules | |
parent | eca102ddac77a42c6fda62a283fe0802e0ff5549 (diff) | |
download | cpython-305d78b71481e309051b1b88f363805d8c0ad34a.zip cpython-305d78b71481e309051b1b88f363805d8c0ad34a.tar.gz cpython-305d78b71481e309051b1b88f363805d8c0ad34a.tar.bz2 |
[3.12] GH-103631: Fix `PurePosixPath(PureWindowsPath(...))` separator handling (GH-104949) (GH-104991)
For backwards compatibility, accept backslashes as path separators in
`PurePosixPath` if an instance of `PureWindowsPath` is supplied.
This restores behaviour from Python 3.11.
(cherry picked from commit 328422ce6162eb18735a2c0de12f8a696be97d0c)
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Diffstat (limited to 'Modules')
0 files changed, 0 insertions, 0 deletions