changeset: 104757:ded9a3c3bbb6 parent: 104755:05777a9c9b6b parent: 104756:c04a56b3a4f2 user: Serhiy Storchaka date: Thu Oct 27 22:45:03 2016 +0300 description: Issue #22493: Updated an example for fnmatch.translate(). diff -r 05777a9c9b6b -r ded9a3c3bbb6 Doc/library/fnmatch.rst --- a/Doc/library/fnmatch.rst Thu Oct 27 12:15:23 2016 -0700 +++ b/Doc/library/fnmatch.rst Thu Oct 27 22:45:03 2016 +0300 @@ -82,7 +82,7 @@ >>> >>> 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'>