diff options
author | R David Murray <rdmurray@bitdance.com> | 2012-03-14 19:31:47 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2012-03-14 19:31:47 (GMT) |
commit | b53319f509be7389187a943122de9e6b479a8bf9 (patch) | |
tree | 610aa2d78a35a9bc780ab34f8e12064dd618d506 /Lib/email | |
parent | 345266aa7e7fdbb1bbf3ffd244caff39406d46d2 (diff) | |
download | cpython-b53319f509be7389187a943122de9e6b479a8bf9.zip cpython-b53319f509be7389187a943122de9e6b479a8bf9.tar.gz cpython-b53319f509be7389187a943122de9e6b479a8bf9.tar.bz2 |
#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.
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/utils.py b/Lib/email/utils.py index aecea65..138f05d 100644 --- a/Lib/email/utils.py +++ b/Lib/email/utils.py @@ -55,7 +55,7 @@ CRLF = '\r\n' TICK = "'" specialsre = re.compile(r'[][\\()<>@,:;".]') -escapesre = re.compile(r'[][\\()"]') +escapesre = re.compile(r'[\\"]') |