commit | 10324f88a86b0c2dc1cf531632a31a96d47eafc8 | [log] [tgz] |
---|---|---|
author | R David Murray <rdmurray@bitdance.com> | Sat May 02 15:09:22 2015 -0400 |
committer | R David Murray <rdmurray@bitdance.com> | Sat May 02 15:09:22 2015 -0400 |
tree | a5331c18552113374b88e511ed7d4227f02400ee | |
parent | 11d041a0452716ed832df068d1d4aae0c43b0c4b [diff] [blame] |
#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 b14c551..a539654 100644 --- a/Doc/library/fnmatch.rst +++ b/Doc/library/fnmatch.rst
@@ -85,7 +85,7 @@ >>> >>> regex = fnmatch.translate('*.txt') >>> regex - '.*\\.txt$' + '.*\\.txt\\Z(?ms)' >>> reobj = re.compile(regex) >>> reobj.match('foobar.txt') <_sre.SRE_Match object at 0x...>