diff options
author | Steve Dower <steve.dower@python.org> | 2019-06-27 17:47:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-27 17:47:59 (GMT) |
commit | 44f91c388a6f4da9ed3300df32ca290b8aa104ea (patch) | |
tree | 6e02d501dbcb28708fa662a33da2715a505389e5 /Lib/imaplib.py | |
parent | 21cfae107e410bf4b0ab3c142ca4449bc33290f5 (diff) | |
download | cpython-44f91c388a6f4da9ed3300df32ca290b8aa104ea.zip cpython-44f91c388a6f4da9ed3300df32ca290b8aa104ea.tar.gz cpython-44f91c388a6f4da9ed3300df32ca290b8aa104ea.tar.bz2 |
bpo-37390: Add audit event table to documentations (GH-14406)
Also updates some (unreleased) event names to be consistent with the others.
Diffstat (limited to 'Lib/imaplib.py')
-rw-r--r-- | Lib/imaplib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/imaplib.py b/Lib/imaplib.py index face45b..822d9d6 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -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) |