[Python-checkins] cpython (2.7): #24108: Update fnmatch.translate example to show correct output.

r.david.murray python-checkins at python.org
Sat May 2 21:09:46 CEST 2015


https://hg.python.org/cpython/rev/5d356223f075
changeset: 95850:5d356223f075
branch: 2.7
parent: 95847:fd1549dd8065
user: R David Murray <rdmurray at bitdance.com>
date: Sat May 02 15:09:22 2015 -0400
summary:
 #24108: Update fnmatch.translate example to show correct output.
Patch by Merlijn van Deen.
files:
 Doc/library/fnmatch.rst | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/fnmatch.rst b/Doc/library/fnmatch.rst
--- 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...>
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /