#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:
R David Murray 2012-03-14 15:31:47 -04:00
parent 345266aa7e
commit b53319f509
3 changed files with 17 additions and 2 deletions

View file

@ -55,7 +55,7 @@ CRLF = '\r\n'
TICK = "'"
specialsre = re.compile(r'[][\\()<>@,:;".]')
escapesre = re.compile(r'[][\\()"]')
escapesre = re.compile(r'[\\"]')