summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2010-07-23 16:58:21 (GMT)
committerBrett Cannon <bcannon@gmail.com>2010-07-23 16:58:21 (GMT)
commit030244aaf910aecbc62319e6d3d76ca8a3fadef1 (patch)
tree3fb714f8cfc841cf81539d055b92ff459c01faf3
parent671153db25e3cc6ba1fdd82763e401c310b22c8e (diff)
downloadcpython-030244aaf910aecbc62319e6d3d76ca8a3fadef1.zip
cpython-030244aaf910aecbc62319e6d3d76ca8a3fadef1.tar.gz
cpython-030244aaf910aecbc62319e6d3d76ca8a3fadef1.tar.bz2
Mention in the fnmatch docs that meta-characters in translate cannot be quoted.
Closes issue 9358. Thanks to Brian Brazil for the patch.
-rw-r--r--Doc/library/fnmatch.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/fnmatch.rst b/Doc/library/fnmatch.rst
index ec78ed2..49073c5 100644
--- a/Doc/library/fnmatch.rst
+++ b/Doc/library/fnmatch.rst
@@ -70,6 +70,8 @@ patterns.
Return the shell-style *pattern* converted to a regular expression.
+ Be aware there is no way to quote meta-characters.
+
Example:
>>> import fnmatch, re