MCPcopy Index your code
hub / github.com/RustPython/RustPython / _log

Method _log

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

Source from the content-addressed store, hash-verified

1401 self._mesg('untagged responses dump:' + '\n\t\t'.join(items))
1402
1403 def _log(self, line):
1404 # Keep log of last '_cmd_log_len' interactions for debugging.
1405 self._cmd_log[self._cmd_log_idx] = (line, time.time())
1406 self._cmd_log_idx += 1
1407 if self._cmd_log_idx >= self._cmd_log_len:
1408 self._cmd_log_idx = 0
1409
1410 def print_log(self):
1411 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