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

Method shouldFlush

Lib/logging/handlers.py:1332–1339  ·  view source on GitHub ↗

Should the handler flush its buffer? Returns true if the buffer is up to capacity. This method can be overridden to implement custom flushing strategies.

(self, record)

Source from the content-addressed store, hash-verified

1330 self.buffer = []
1331
1332 def shouldFlush(self, record):
1333 """
1334 Should the handler flush its buffer?
1335
1336 Returns true if the buffer is up to capacity. This method can be
1337 overridden to implement custom flushing strategies.
1338 """
1339 return (len(self.buffer) >= self.capacity)
1340
1341 def emit(self, record):
1342 """

Callers 2

emitMethod · 0.95
test_builtin_handlersMethod · 0.95

Calls 1

lenFunction · 0.85

Tested by 1

test_builtin_handlersMethod · 0.76