From f831fd3f1905a228dbbe32b7c2bb4922f90eaeed Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 27 Oct 2016 22:47:08 +0300 Subject: [PATCH] Issue #22949: Documented that fnmatch.translate() is for use with re.match(). --- Doc/library/fnmatch.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/fnmatch.rst b/Doc/library/fnmatch.rst index a539654572..3dfec2d52e 100644 --- a/Doc/library/fnmatch.rst +++ b/Doc/library/fnmatch.rst @@ -77,7 +77,8 @@ patterns. .. function:: translate(pattern) - Return the shell-style *pattern* converted to a regular expression. + Return the shell-style *pattern* converted to a regular expression for + using with :func:`re.match`. Example: -- 2.50.0