Browse Source

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

pull/2/head
Serhiy Storchaka 9 years ago
parent
commit
bc6830c948
  1. 3
      Doc/library/fnmatch.rst

3
Doc/library/fnmatch.rst

@ -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…
Cancel
Save