From: Serhiy Storchaka Date: Thu, 27 Oct 2016 19:47:08 +0000 (+0300) Subject: Issue #22949: Documented that fnmatch.translate() is for use with re.match(). X-Git-Tag: v2.7.13rc1~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f831fd3f1905a228dbbe32b7c2bb4922f90eaeed;p=python Issue #22949: Documented that fnmatch.translate() is for use with re.match(). --- 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: