Kaydet (Commit) a65a474e authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

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

üst fcf622e3
...@@ -74,7 +74,8 @@ patterns. ...@@ -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:
......
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