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

This commit is contained in:
Serhiy Storchaka 2016-10-27 22:47:08 +03:00
parent fcf622e30e
commit a65a474e19
1 changed files with 2 additions and 1 deletions

View File

@ -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: