From 0f663d07e669c39ce9a7ddfa71ed1293379a358e Mon Sep 17 00:00:00 2001 From: R David Murray Date: Thu, 9 Jun 2011 15:05:57 -0400 Subject: #12283: Fixed regression in smtplib quoting of leading dots in DATA. I unfortunately introduced the regression when I refactored the code, and there were no tests of quoting so it wasn't caught. Now there is one. --- Lib/smtplib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/smtplib.py') diff --git a/Lib/smtplib.py b/Lib/smtplib.py index dbccf48982..ce71699d8d 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) -- cgit v1.2.1