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

Method emit

Lib/logging/handlers.py:1341–1350  ·  view source on GitHub ↗

Emit a record. Append the record. If shouldFlush() tells us to, call flush() to process the buffer.

(self, record)

Source from the content-addressed store, hash-verified

1339 return (len(self.buffer) >= self.capacity)
1340
1341 def emit(self, record):
1342 """
1343 Emit a record.
1344
1345 Append the record. If shouldFlush() tells us to, call flush() to process
1346 the buffer.
1347 """
1348 self.buffer.append(record)
1349 if self.shouldFlush(record):
1350 self.flush()
1351
1352 def flush(self):
1353 """

Callers

nothing calls this directly

Calls 3

shouldFlushMethod · 0.95
flushMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected