From: Barry Warsaw Date: Mon, 10 Mar 2003 19:20:18 +0000 (+0000) Subject: specialsre, escapesre: In SF bug #663369, Matthew Woodcraft points out X-Git-Tag: v2.3c1~1494 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a2369928b52ddcbadb5709cfa5df0b502d861090;p=thirdparty%2FPython%2Fcpython.git specialsre, escapesre: In SF bug #663369, Matthew Woodcraft points out that backslashes must be escaped in character sets. --- diff --git a/Lib/email/Utils.py b/Lib/email/Utils.py index 49232f71db72..2b8b94fec49b 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'[][\\()"]')