Commit 9cbed740 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #22949: Documented that fnmatch.translate() is for use with re.match().

parents c141ab62 39cc54f6
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment