diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-27 19:47:08 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-27 19:47:08 (GMT) |
commit | a65a474e19d53a5b4799f124cfb5d33aa74207ac (patch) | |
tree | 912f064427d8b9d1c5efde6a2a97a8fe2b92db0f /Doc | |
parent | fcf622e30e780785900f808fce99fd9f9e2491fd (diff) | |
download | cpython-a65a474e19d53a5b4799f124cfb5d33aa74207ac.zip cpython-a65a474e19d53a5b4799f124cfb5d33aa74207ac.tar.gz cpython-a65a474e19d53a5b4799f124cfb5d33aa74207ac.tar.bz2 |
Issue #22949: Documented that fnmatch.translate() is for use with re.match().
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/fnmatch.rst | 3 |
1 files changed, 2 insertions, 1 deletions
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: |