mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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
|
@ -289,7 +289,7 @@ class IMAP4:
|
|||
# (which is used by socket.create_connection()) expects None
|
||||
# as a default value for host.
|
||||
host = None if not self.host else self.host
|
||||
sys.audit("imaplib.IMAP4.open", self, self.host, self.port)
|
||||
sys.audit("imaplib.open", self, self.host, self.port)
|
||||
return socket.create_connection((host, self.port))
|
||||
|
||||
def open(self, host = '', port = IMAP4_PORT):
|
||||
|
@ -319,7 +319,7 @@ class IMAP4:
|
|||
|
||||
def send(self, data):
|
||||
"""Send data to remote."""
|
||||
sys.audit("imaplib.IMAP4.send", self, data)
|
||||
sys.audit("imaplib.send", self, data)
|
||||
self.sock.sendall(data)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue