mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-37390: Add audit event table to documentations (GH-14406)
Also updates some (unreleased) event names to be consistent with the others.
This commit is contained in:
parent
21cfae107e
commit
44f91c388a
34 changed files with 266 additions and 113 deletions
|
@ -335,7 +335,7 @@ class SMTP:
|
|||
port = self.default_port
|
||||
if self.debuglevel > 0:
|
||||
self._print_debug('connect:', (host, port))
|
||||
sys.audit("smtplib.SMTP.connect", self, host, port)
|
||||
sys.audit("smtplib.connect", self, host, port)
|
||||
self.sock = self._get_socket(host, port, self.timeout)
|
||||
self.file = None
|
||||
(code, msg) = self.getreply()
|
||||
|
@ -353,7 +353,7 @@ class SMTP:
|
|||
# should not be used, but 'data' needs to convert the string to
|
||||
# binary itself anyway, so that's not a problem.
|
||||
s = s.encode(self.command_encoding)
|
||||
sys.audit("smtplib.SMTP.send", self, s)
|
||||
sys.audit("smtplib.send", self, s)
|
||||
try:
|
||||
self.sock.sendall(s)
|
||||
except OSError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue