mirror of
https://github.com/python/cpython.git
synced 2026-01-09 08:52:34 +00:00
Issue #22949: Documented that fnmatch.translate() is for use with re.match().
This commit is contained in:
commit
bc6830c948
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