Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a65a474

Browse files
Issue #22949: Documented that fnmatch.translate() is for use with re.match().
1 parent fcf622e commit a65a474

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/library/fnmatch.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ patterns.
7474

7575
.. function:: translate(pattern)
7676

77-
Return the shell-style *pattern* converted to a regular expression.
77+
Return the shell-style *pattern* converted to a regular expression for
78+
using with :func:`re.match`.
7879

7980
Example:
8081

0 commit comments

Comments
 (0)