commit | f831fd3f1905a228dbbe32b7c2bb4922f90eaeed | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Thu Oct 27 22:47:08 2016 +0300 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Thu Oct 27 22:47:08 2016 +0300 |
tree | a9775ebc4a209764d2435929357d49511611262e | |
parent | d585c52511b4eae9b95c0f6ac071d4e07febec2a [diff] |
Issue #22949: Documented that fnmatch.translate() is for use with re.match().
diff --git a/Doc/library/fnmatch.rst b/Doc/library/fnmatch.rst index a539654..3dfec2d 100644 --- 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: