]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
specialsre, escapesre: In SF bug #663369, Matthew Woodcraft points out
authorBarry Warsaw <barry@python.org>
Mon, 10 Mar 2003 19:20:18 +0000 (19:20 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 10 Mar 2003 19:20:18 +0000 (19:20 +0000)
that backslashes must be escaped in character sets.

Lib/email/Utils.py

index 49232f71db7253df93097a0fd8053533a2ac7f72..2b8b94fec49b7cd0ba2b2af4c9d7e27fcb850107 100644 (file)
@@ -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'[][\\()"]')
 
 
 \f