From e0a220e9e2bbb18f7a911c00d4fc02aee9ef3b25 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 27 Oct 2016 22:44:03 +0300 Subject: [PATCH] Issue #22493: Updated an example for fnmatch.translate(). --- Doc/library/fnmatch.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/fnmatch.rst b/Doc/library/fnmatch.rst index 85ac4849653..3298fc85501 100644 --- a/Doc/library/fnmatch.rst +++ b/Doc/library/fnmatch.rst @@ -82,7 +82,7 @@ patterns. >>> >>> regex = fnmatch.translate('*.txt') >>> regex - '.*\\.txt\\Z(?ms)' + '(?s:.*\\.txt)\\Z' >>> reobj = re.compile(regex) >>> reobj.match('foobar.txt') <_sre.SRE_Match object; span=(0, 10), match='foobar.txt'>