[Python-checkins] cpython (3.5): Issue #22949: Documented that fnmatch.translate() is for use with re.match().
serhiy.storchaka
python-checkins at python.org
Thu Oct 27 15:50:48 EDT 2016
https://hg.python.org/cpython/rev/a1aef5f84142
changeset: 104758:a1aef5f84142
branch: 3.5
parent: 104752:e880a93662c8
user: Serhiy Storchaka <storchaka at gmail.com>
date: Thu Oct 27 22:47:08 2016 +0300
summary:
Issue #22949: Documented that fnmatch.translate() is for use with re.match().
files:
Doc/library/fnmatch.rst | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Doc/library/fnmatch.rst b/Doc/library/fnmatch.rst
--- 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:
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list