Issue #22949: Documented that fnmatch.translate() is for use with re.match().

This commit is contained in:
Serhiy Storchaka 2016-10-27 22:50:15 +03:00
commit e45ef4e54c
1 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,8 @@ patterns.
.. function:: translate(pattern) .. 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: Example: