commit | a65a474e19d53a5b4799f124cfb5d33aa74207ac | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Thu Oct 27 22:47:08 2016 +0300 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Thu Oct 27 22:47:08 2016 +0300 |
tree | 912f064427d8b9d1c5efde6a2a97a8fe2b92db0f | |
parent | fcf622e30e780785900f808fce99fd9f9e2491fd [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 85ac484..9fc9c7c 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: