mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
bpo-37390: Add audit event table to documentations (GH-14406)
Also updates some (unreleased) event names to be consistent with the others.
(cherry picked from commit 44f91c388a
)
Co-authored-by: Steve Dower <steve.dower@python.org>
This commit is contained in:
parent
60f24b23bf
commit
4fee28aa42
34 changed files with 266 additions and 113 deletions
|
@ -100,7 +100,7 @@ class POP3:
|
|||
self.host = host
|
||||
self.port = port
|
||||
self._tls_established = False
|
||||
sys.audit("poplib.POP3", self, host, port)
|
||||
sys.audit("poplib.connect", self, host, port)
|
||||
self.sock = self._create_socket(timeout)
|
||||
self.file = self.sock.makefile('rb')
|
||||
self._debugging = 0
|
||||
|
@ -111,7 +111,7 @@ class POP3:
|
|||
|
||||
def _putline(self, line):
|
||||
if self._debugging > 1: print('*put*', repr(line))
|
||||
sys.audit("poplib.POP3.putline", self, line)
|
||||
sys.audit("poplib.putline", self, line)
|
||||
self.sock.sendall(line + CRLF)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue