Issue #22949: Documented that fnmatch.translate() is for use with re.match().
This commit is contained in:
commit
e45ef4e54c
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue