]> granicus.if.org Git - python/commitdiff
Issue #22949: Documented that fnmatch.translate() is for use with re.match().
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 27 Oct 2016 19:47:08 +0000 (22:47 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 27 Oct 2016 19:47:08 +0000 (22:47 +0300)
Doc/library/fnmatch.rst

index 85ac4849653f6b53b5e4e1eb820c80b2205d54d4..9fc9c7c4d518936ad28e999f86a0987163c2310a 100644 (file)
@@ -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: