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: v3.6.0b3~37^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a65a474e19d53a5b4799f124cfb5d33aa74207ac;p=thirdparty%2FPython%2Fcpython.git 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 85ac4849653f..9fc9c7c4d518 100644 --- a/Doc/library/fnmatch.rst +++ b/Doc/library/fnmatch.rst @@ -74,7 +74,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: