summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-27 19:47:08 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-27 19:47:08 (GMT)
commita65a474e19d53a5b4799f124cfb5d33aa74207ac (patch)
tree912f064427d8b9d1c5efde6a2a97a8fe2b92db0f /Doc
parentfcf622e30e780785900f808fce99fd9f9e2491fd (diff)
downloadcpython-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.rst3
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: