From: Serhiy Storchaka Date: Thu, 27 Oct 2016 19:44:03 +0000 (+0300) Subject: Issue #22493: Updated an example for fnmatch.translate(). X-Git-Tag: v3.6.0b3~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e0a220e9e2bbb18f7a911c00d4fc02aee9ef3b25;p=thirdparty%2FPython%2Fcpython.git Issue #22493: Updated an example for fnmatch.translate(). --- diff --git a/Doc/library/fnmatch.rst b/Doc/library/fnmatch.rst index 85ac4849653f..3298fc855015 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'>