commit | 4590c3d944230aff3d1e6810d3113e790922359c | [log] [tgz] |
---|---|---|
author | R David Murray <rdmurray@bitdance.com> | Sat May 02 15:08:22 2015 -0400 |
committer | R David Murray <rdmurray@bitdance.com> | Sat May 02 15:08:22 2015 -0400 |
tree | 61b704d24daf9844161dd81b9cba2ec74abfad09 | |
parent | 6d877ef0260b4b9bc2d722a6817818c06047e42a [diff] |
#24108: Update fnmatch.translate example to show correct output. Patch by Merlijn van Deen.
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 @@ >>> >>> 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'>