summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2022-05-10 00:12:16 (GMT)
committerGitHub <noreply@github.com>2022-05-10 00:12:16 (GMT)
commitdcdf250d2de1428f7d8b4e9ecf51d2fd8200e21a (patch)
tree73abe338405d711454c8dc931a87c2e45ba23da5 /Doc/whatsnew
parentcb35402c1867b48704c2de1d1efd465ca738f374 (diff)
downloadcpython-dcdf250d2de1428f7d8b4e9ecf51d2fd8200e21a.zip
cpython-dcdf250d2de1428f7d8b4e9ecf51d2fd8200e21a.tar.gz
cpython-dcdf250d2de1428f7d8b4e9ecf51d2fd8200e21a.tar.bz2
gh-92550 - Fix regression in `pathlib.Path.rglob()` (GH-92583)
We could try to remedy this by taking a slice, but we then run into an issue where the empty string will match altsep on POSIX. That rabbit hole could keep getting deeper. A proper fix for the original issue involves making pathlib's path normalisation more configurable - in this case we want to retain trailing slashes, but in other we might want to preserve `./` prefixes, or elide `../` segments when we're sure we won't encounter symlinks. This reverts commit ea2f5bcda1a392804487e6883be89fbad38a01a5.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.11.rst9
1 files changed, 0 insertions, 9 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index fd7082e..ed61e01 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -557,15 +557,6 @@ os
instead of ``CryptGenRandom()`` which is deprecated.
(Contributed by Dong-hee Na in :issue:`44611`.)
-
-pathlib
--------
-
-* :meth:`~pathlib.Path.glob` and :meth:`~pathlib.Path.rglob` return only
- directories if *pattern* ends with a pathname components separator:
- :data:`~os.sep` or :data:`~os.altsep`.
- (Contributed by Eisuke Kawasima in :issue:`22276` and :issue:`33392`.)
-
re
--