mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
specialsre, escapesre: In SF bug #663369, Matthew Woodcraft points out
that backslashes must be escaped in character sets.
This commit is contained in:
parent
a2e64702ca
commit
a2369928b5
1 changed files with 2 additions and 2 deletions
|
@ -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'[][\\()"]')
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue