mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Mention in the fnmatch docs that meta-characters in translate cannot be quoted.
Closes issue 9358. Thanks to Brian Brazil for the patch.
This commit is contained in:
parent
671153db25
commit
030244aaf9
1 changed files with 2 additions and 0 deletions
|
@ -70,6 +70,8 @@ patterns.
|
||||||
|
|
||||||
Return the shell-style *pattern* converted to a regular expression.
|
Return the shell-style *pattern* converted to a regular expression.
|
||||||
|
|
||||||
|
Be aware there is no way to quote meta-characters.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
>>> import fnmatch, re
|
>>> import fnmatch, re
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue