summaryrefslogtreecommitdiffstats
path: root/Doc/library/fnmatch.rst
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2015-05-02 19:08:22 (GMT)
committerR David Murray <rdmurray@bitdance.com>2015-05-02 19:08:22 (GMT)
commit4590c3d944230aff3d1e6810d3113e790922359c (patch)
tree61b704d24daf9844161dd81b9cba2ec74abfad09 /Doc/library/fnmatch.rst
parent6d877ef0260b4b9bc2d722a6817818c06047e42a (diff)
downloadcpython-4590c3d944230aff3d1e6810d3113e790922359c.zip
cpython-4590c3d944230aff3d1e6810d3113e790922359c.tar.gz
cpython-4590c3d944230aff3d1e6810d3113e790922359c.tar.bz2
#24108: Update fnmatch.translate example to show correct output.
Patch by Merlijn van Deen.
Diffstat (limited to 'Doc/library/fnmatch.rst')
-rw-r--r--Doc/library/fnmatch.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/fnmatch.rst b/Doc/library/fnmatch.rst
index ef93f05..68b437f 100644
--- a/Doc/library/fnmatch.rst
+++ b/Doc/library/fnmatch.rst
@@ -83,7 +83,7 @@ patterns.
>>>
>>> regex = fnmatch.translate('*.txt')
>>> regex
- '.*\\.txt$'
+ '.*\\.txt\\Z(?ms)'
>>> reobj = re.compile(regex)
>>> reobj.match('foobar.txt')
<_sre.SRE_Match object; span=(0, 10), match='foobar.txt'>