Issue #22949: Documented that fnmatch.translate() is for use with re.match().
This commit is contained in:
parent
fcf622e30e
commit
a65a474e19
@ -74,7 +74,8 @@ patterns.
|
|||||||
|
|
||||||
.. function:: translate(pattern)
|
.. 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:
|
Example:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user