Skip to content

Commit ff54111

Browse files
ShaharNavehyouknowone
authored andcommitted
Update smtplib.py from 3.14.3
1 parent c058add commit ff54111

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

Lib/smtplib.py

100755100644
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#! /usr/bin/env python3
2-
31
'''SMTP/ESMTP client class.
42
53
This should follow RFC 821 (SMTP), RFC 1869 (ESMTP), RFC 2554 (SMTP
@@ -105,7 +103,7 @@ class SMTPSenderRefused(SMTPResponseException):
105103
"""Sender address refused.
106104
107105
In addition to the attributes set by on all SMTPResponseException
108-
exceptions, this sets `sender' to the string that the SMTP refused.
106+
exceptions, this sets 'sender' to the string that the SMTP refused.
109107
"""
110108

111109
def __init__(self, code, msg, sender):
@@ -182,8 +180,7 @@ def _fix_eols(data):
182180

183181
try:
184182
hmac.digest(b'', b'', 'md5')
185-
# except ValueError:
186-
except (ValueError, AttributeError): # TODO: RUSTPYTHON
183+
except ValueError:
187184
_have_cram_md5_support = False
188185
else:
189186
_have_cram_md5_support = True
@@ -325,7 +322,7 @@ def _get_socket(self, host, port, timeout):
325322
def connect(self, host='localhost', port=0, source_address=None):
326323
"""Connect to a host on a given port.
327324
328-
If the hostname ends with a colon (`:') followed by a number, and
325+
If the hostname ends with a colon (':') followed by a number, and
329326
there is no port specified, that suffix will be stripped off and the
330327
number interpreted as the port number to use.
331328
@@ -356,7 +353,7 @@ def connect(self, host='localhost', port=0, source_address=None):
356353
return (code, msg)
357354

358355
def send(self, s):
359-
"""Send `s' to the server."""
356+
"""Send 's' to the server."""
360357
if self.debuglevel > 0:
361358
self._print_debug('send:', repr(s))
362359
if self.sock:

0 commit comments

Comments
 (0)