From 4590c3d944230aff3d1e6810d3113e790922359c Mon Sep 17 00:00:00 2001 From: R David Murray Date: Sat, 2 May 2015 15:08:22 -0400 Subject: #24108: Update fnmatch.translate example to show correct output. Patch by Merlijn van Deen. --- Doc/library/fnmatch.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/fnmatch.rst b/Doc/library/fnmatch.rst index ef93f05..68b437f 100644 --- a/Doc/library/fnmatch.rst +++ b/Doc/library/fnmatch.rst @@ -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'> -- cgit v0.12