changeset: 104756:c04a56b3a4f2 branch: 3.6 parent: 104754:fbc4d01ae3f0 user: Serhiy Storchaka date: Thu Oct 27 22:44:03 2016 +0300 files: Doc/library/fnmatch.rst description: Issue #22493: Updated an example for fnmatch.translate(). diff -r fbc4d01ae3f0 -r c04a56b3a4f2 Doc/library/fnmatch.rst --- a/Doc/library/fnmatch.rst Thu Oct 27 12:14:48 2016 -0700 +++ b/Doc/library/fnmatch.rst Thu Oct 27 22:44: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'>