summaryrefslogtreecommitdiffstats
path: root/Doc/library/fnmatch.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-27 19:44:03 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-27 19:44:03 (GMT)
commite0a220e9e2bbb18f7a911c00d4fc02aee9ef3b25 (patch)
tree41826cd46fffee23b267858f625ea824b4c22a17 /Doc/library/fnmatch.rst
parent31c80e8eaef0fc06157caa5843ff211966f999d3 (diff)
downloadcpython-e0a220e9e2bbb18f7a911c00d4fc02aee9ef3b25.zip
cpython-e0a220e9e2bbb18f7a911c00d4fc02aee9ef3b25.tar.gz
cpython-e0a220e9e2bbb18f7a911c00d4fc02aee9ef3b25.tar.bz2
Issue #22493: Updated an example for fnmatch.translate().
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 85ac484..3298fc8 100644
--- a/Doc/library/fnmatch.rst
+++ b/Doc/library/fnmatch.rst
@@ -82,7 +82,7 @@ patterns.
>>>
>>> regex = fnmatch.translate('*.txt')
>>> regex
- '.*\\.txt\\Z(?ms)'
+ '(?s:.*\\.txt)\\Z'
>>> reobj = re.compile(regex)
>>> reobj.match('foobar.txt')
<_sre.SRE_Match object; span=(0, 10), match='foobar.txt'>