diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-27 19:44:03 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-27 19:44:03 (GMT) |
commit | e0a220e9e2bbb18f7a911c00d4fc02aee9ef3b25 (patch) | |
tree | 41826cd46fffee23b267858f625ea824b4c22a17 /Doc/library/fnmatch.rst | |
parent | 31c80e8eaef0fc06157caa5843ff211966f999d3 (diff) | |
download | cpython-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.rst | 2 |
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'> |