[Python-checkins] cpython (merge 3.4 -> default): Merge: #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/cc6aed8ecb0d
changeset:   95849:cc6aed8ecb0d
parent:      95846:d57e0c6d292d
parent:      95848:c5c65ef84a77
user:        R David Murray <rdmurray at bitdance.com>
date:        Sat May 02 15:08:50 2015 -0400
summary:
  Merge: #24108: Update fnmatch.translate example to show correct output.

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
@@ -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'>

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list