[Python-checkins] cpython (2.7): 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/8a564ab1d208
changeset:   104759:8a564ab1d208
branch:      2.7
parent:      104748:e90fe2209276
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
@@ -77,7 +77,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