summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-27 19:50:15 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-27 19:50:15 (GMT)
commite45ef4e54cc408e1243e57eb2287c087fa81a0d4 (patch)
treea6a69f16c241d0271f802666747a089e1d68202e /Doc
parente0a220e9e2bbb18f7a911c00d4fc02aee9ef3b25 (diff)
parenta65a474e19d53a5b4799f124cfb5d33aa74207ac (diff)
downloadcpython-e45ef4e54cc408e1243e57eb2287c087fa81a0d4.zip
cpython-e45ef4e54cc408e1243e57eb2287c087fa81a0d4.tar.gz
cpython-e45ef4e54cc408e1243e57eb2287c087fa81a0d4.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 3298fc8..c03a9d3 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: