Skip to content

Commit 046dfbf

Browse files
committed
Fixes trailing whitespaces in smtplib and test file
1 parent a72eaf5 commit 046dfbf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/smtplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ def sendmail(self, from_addr, to_addrs, msg, mail_options=(),
891891
except SMTPDataError as ex:
892892
if ex.smtp_code == 421:
893893
self.close()
894-
else:
894+
else:
895895
self._rset()
896896
raise
897897
if code != 250:

Lib/test/test_smtplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ def test__rest_from_mail_cmd(self):
12601260
self.assertIsNone(smtp.sock)
12611261

12621262
# The following 421 response tests for sendmail ensure that sendmail handles
1263-
# 421 respones correctly by closing the connection. sendmail has to take
1263+
# 421 respones correctly by closing the connection. sendmail has to take
12641264
# care of this, as it wraps a mail transaction for users.
12651265

12661266
# Issue 5713: make sure close, not rset, is called if we get a 421 error

0 commit comments

Comments
 (0)