Merge: #24108: Update fnmatch.translate example to show correct output.

This commit is contained in:
R David Murray 2015-05-02 15:08:50 -04:00
commit 3b85377ab5
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ patterns.
>>>
>>> regex = fnmatch.translate('*.txt')
>>> regex
'.*\\.txt$'
'.*\\.txt\\Z(?ms)'
>>> reobj = re.compile(regex)
>>> reobj.match('foobar.txt')
<_sre.SRE_Match object; span=(0, 10), match='foobar.txt'>