Issue #22493: Updated an example for fnmatch.translate().

This commit is contained in:
Serhiy Storchaka 2016-10-27 22:45:03 +03:00
commit df12b7f1c5
1 changed files with 1 additions and 1 deletions

View File

@ -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'>