mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Issue #22949: Documented that fnmatch.translate() is for use with re.match().
This commit is contained in:
parent
fcf622e30e
commit
a65a474e19
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue