mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
#12818: remove escaping of () in quoted strings in formataddr
The quoting of ()s inside quoted strings is allowed by the RFC, but is not needed. There seems to be no reason to add needless escapes.
This commit is contained in:
parent
345266aa7e
commit
b53319f509
3 changed files with 17 additions and 2 deletions
|
@ -55,7 +55,7 @@ CRLF = '\r\n'
|
|||
TICK = "'"
|
||||
|
||||
specialsre = re.compile(r'[][\\()<>@,:;".]')
|
||||
escapesre = re.compile(r'[][\\()"]')
|
||||
escapesre = re.compile(r'[\\"]')
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue