MCPcopy Index your code
hub / github.com/python/cpython / _log

Method _log

Lib/imaplib.py:1402–1407  ·  view source on GitHub ↗
(self, line)

Source from the content-addressed store, hash-verified

1400 self._mesg('untagged responses dump:' + '\n\t\t'.join(items))
1401
1402 def _log(self, line):
1403 # Keep log of last '_cmd_log_len' interactions for debugging.
1404 self._cmd_log[self._cmd_log_idx] = (line, time.time())
1405 self._cmd_log_idx += 1
1406 if self._cmd_log_idx >= self._cmd_log_len:
1407 self._cmd_log_idx = 0
1408
1409 def print_log(self):
1410 self._mesg('last %d IMAP4 interactions:' % len(self._cmd_log))

Callers 2

_commandMethod · 0.95
_get_lineMethod · 0.95

Calls 1

timeMethod · 0.45

Tested by

no test coverage detected