summaryrefslogtreecommitdiffstats
path: root/Doc/library/glob.rst
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2024-03-17 17:09:35 (GMT)
committerGitHub <noreply@github.com>2024-03-17 17:09:35 (GMT)
commit0634201f5391242524dbb5225de37f81a2cc1826 (patch)
treea72c842a1dcab241fd7265cb86b9a8c7ee4a11e8 /Doc/library/glob.rst
parent1cf03010865c66c2c3286ffdafd55e7ce2d97444 (diff)
downloadcpython-0634201f5391242524dbb5225de37f81a2cc1826.zip
cpython-0634201f5391242524dbb5225de37f81a2cc1826.tar.gz
cpython-0634201f5391242524dbb5225de37f81a2cc1826.tar.bz2
GH-116377: Stop raising `ValueError` from `glob.translate()`. (#116378)
Stop raising `ValueError` from `glob.translate()` when a `**` sub-string appears in a non-recursive pattern segment. This matches `glob.glob()` behaviour.
Diffstat (limited to 'Doc/library/glob.rst')
-rw-r--r--Doc/library/glob.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/library/glob.rst b/Doc/library/glob.rst
index 19a0bbb..15fef74 100644
--- a/Doc/library/glob.rst
+++ b/Doc/library/glob.rst
@@ -136,8 +136,7 @@ The :mod:`glob` module defines the following functions:
separators, and ``*`` pattern segments match precisely one path segment.
If *recursive* is true, the pattern segment "``**``" will match any number
- of path segments. If "``**``" occurs in any position other than a full
- pattern segment, :exc:`ValueError` is raised.
+ of path segments.
If *include_hidden* is true, wildcards can match path segments that start
with a dot (``.``).