summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-27 19:50:29 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-27 19:50:29 (GMT)
commitbc6830c9486ed7d48d5ac2ea56f0d8309872abbf (patch)
treecd9a0886011b33517ec0ab3b312b1058c240bf41
parentdf12b7f1c541987d9b4ebe4ccfd0b5fb1d8b5f46 (diff)
parente45ef4e54cc408e1243e57eb2287c087fa81a0d4 (diff)
downloadcpython-bc6830c9486ed7d48d5ac2ea56f0d8309872abbf.zip
cpython-bc6830c9486ed7d48d5ac2ea56f0d8309872abbf.tar.gz
cpython-bc6830c9486ed7d48d5ac2ea56f0d8309872abbf.tar.bz2
Issue #22949: Documented that fnmatch.translate() is for use with re.match().
-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: