summaryrefslogtreecommitdiffstats
path: root/Lib/email
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2003-03-10 19:20:18 (GMT)
committerBarry Warsaw <barry@python.org>2003-03-10 19:20:18 (GMT)
commita2369928b52ddcbadb5709cfa5df0b502d861090 (patch)
treeb115a142718e2ce045468fd09cfbc8079127be77 /Lib/email
parenta2e64702ca3e5d04c1b65c11bb9fdda32720809a (diff)
downloadcpython-a2369928b52ddcbadb5709cfa5df0b502d861090.zip
cpython-a2369928b52ddcbadb5709cfa5df0b502d861090.tar.gz
cpython-a2369928b52ddcbadb5709cfa5df0b502d861090.tar.bz2
specialsre, escapesre: In SF bug #663369, Matthew Woodcraft points out
that backslashes must be escaped in character sets.
Diffstat (limited to 'Lib/email')
-rw-r--r--Lib/email/Utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/email/Utils.py b/Lib/email/Utils.py
index 49232f7..2b8b94f 100644
--- a/Lib/email/Utils.py
+++ b/Lib/email/Utils.py
@@ -54,8 +54,8 @@ EMPTYSTRING = ''
UEMPTYSTRING = u''
CRLF = '\r\n'
-specialsre = re.compile(r'[][\()<>@,:;".]')
-escapesre = re.compile(r'[][\()"]')
+specialsre = re.compile(r'[][\\()<>@,:;".]')
+escapesre = re.compile(r'[][\\()"]')