summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2022-05-11 04:14:40 (GMT)
committerGitHub <noreply@github.com>2022-05-11 04:14:40 (GMT)
commit5197134c1c392f3040a60c05f7bbb42c4bb24c46 (patch)
tree5b48edb972062a3ede8073af24fe464b6f5527b9 /Doc/whatsnew
parent6a17cdebe9d3571d0c02645880f53a05e9ff7fda (diff)
downloadcpython-5197134c1c392f3040a60c05f7bbb42c4bb24c46.zip
cpython-5197134c1c392f3040a60c05f7bbb42c4bb24c46.tar.gz
cpython-5197134c1c392f3040a60c05f7bbb42c4bb24c46.tar.bz2
Revert "gh-92550 - Fix regression in `pathlib.Path.rglob()` (GH-92583)" (GH-92599)
This reverts commit a51baec9ce0eae2b4db069a55daf8f03be3ab2f4.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.11.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index db5ede6..40e68e6 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -559,6 +559,15 @@ 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
--