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