diff options
author | R David Murray <rdmurray@bitdance.com> | 2011-06-09 19:21:02 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2011-06-09 19:21:02 (GMT) |
commit | 0a9f16b62738dd5ab14907a870a18f8b81a2058a (patch) | |
tree | c793508c600a6b1c048802f647071afa015dc346 /Lib/smtplib.py | |
parent | bf353aadf274b898a515e81c2b1d63fbac83feca (diff) | |
parent | 0f663d07e669c39ce9a7ddfa71ed1293379a358e (diff) | |
download | cpython-0a9f16b62738dd5ab14907a870a18f8b81a2058a.zip cpython-0a9f16b62738dd5ab14907a870a18f8b81a2058a.tar.gz cpython-0a9f16b62738dd5ab14907a870a18f8b81a2058a.tar.bz2 |
merge #12283: Fixed regression in smtplib quoting of leading dots in DATA.
Diffstat (limited to 'Lib/smtplib.py')
-rwxr-xr-x | Lib/smtplib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py index 3295d14..f9d1c99 100755 --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -162,7 +162,7 @@ def quotedata(data): re.sub(r'(?:\r\n|\n|\r(?!\n))', CRLF, data)) def _quote_periods(bindata): - return re.sub(br'(?m)^\.', '..', bindata) + return re.sub(br'(?m)^\.', b'..', bindata) def _fix_eols(data): return re.sub(r'(?:\r\n|\n|\r(?!\n))', CRLF, data) |