From a65a474e19d53a5b4799f124cfb5d33aa74207ac Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 27 Oct 2016 22:47:08 +0300 Subject: 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 85ac484..9fc9c7c 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: -- cgit v0.12