Commit 34da805f authored by R David Murray's avatar R David Murray

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

Patch by Merlijn van Deen.
parent dd8bf6d2
......@@ -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'>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment