diff options
author | Steve Dower <steve.dower@python.org> | 2019-06-24 08:42:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-24 08:42:54 -0700 |
commit | 60419a7e96577cf783b3b45bf3984f9fb0d7ddff (patch) | |
tree | 2718cb915663c42902621491ba60accce6729d42 /Lib/imaplib.py | |
parent | bpo-37359: Fix regrtest --cleanup (GH-14336) (diff) | |
download | cpython-60419a7e96577cf783b3b45bf3984f9fb0d7ddff.tar.gz cpython-60419a7e96577cf783b3b45bf3984f9fb0d7ddff.tar.bz2 cpython-60419a7e96577cf783b3b45bf3984f9fb0d7ddff.zip |
bpo-37363: Add audit events for a range of modules (GH-14301)
Diffstat (limited to 'Lib/imaplib.py')
-rw-r--r-- | Lib/imaplib.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/imaplib.py b/Lib/imaplib.py index 341ee25ae96..face45ba5fa 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -289,6 +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) return socket.create_connection((host, self.port)) def open(self, host = '', port = IMAP4_PORT): @@ -318,6 +319,7 @@ class IMAP4: def send(self, data): """Send data to remote.""" + sys.audit("imaplib.IMAP4.send", self, data) self.sock.sendall(data) |