From: R David Murray <rdmurray@bitdance.com>
Date: Sat, 2 May 2015 19:08:22 +0000 (-0400)
Subject: #24108: Update fnmatch.translate example to show correct output.
X-Git-Tag: v3.5.0b1~266^2
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4590c3d944230aff3d1e6810d3113e790922359c;p=python

#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 ef93f05a7a..68b437f2c0 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'>