specialsre, escapesre: In SF bug #663369, Matthew Woodcraft points out

that backslashes must be escaped in character sets.
This commit is contained in:
Barry Warsaw 2003-03-10 19:20:18 +00:00
parent a2e64702ca
commit a2369928b5
1 changed files with 2 additions and 2 deletions

View File

@ -54,8 +54,8 @@ EMPTYSTRING = ''
UEMPTYSTRING = u'' UEMPTYSTRING = u''
CRLF = '\r\n' CRLF = '\r\n'
specialsre = re.compile(r'[][\()<>@,:;".]') specialsre = re.compile(r'[][\\()<>@,:;".]')
escapesre = re.compile(r'[][\()"]') escapesre = re.compile(r'[][\\()"]')