commit | e45ef4e54cc408e1243e57eb2287c087fa81a0d4 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Thu Oct 27 22:50:15 2016 +0300 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Thu Oct 27 22:50:15 2016 +0300 |
tree | a6a69f16c241d0271f802666747a089e1d68202e | |
parent | e0a220e9e2bbb18f7a911c00d4fc02aee9ef3b25 [diff] | |
parent | a65a474e19d53a5b4799f124cfb5d33aa74207ac [diff] |
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 3298fc8..c03a9d3 100644 --- a/Doc/library/fnmatch.rst +++ b/Doc/library/fnmatch.rst
@@ -74,7 +74,8 @@ .. 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: