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

Method flush

Lib/_android_support.py:96–100  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94 self.flush()
95
96 def flush(self):
97 with self._lock:
98 self.buffer.write(b"".join(self._pending_bytes))
99 self._pending_bytes.clear()
100 self._pending_bytes_count = 0
101
102 # Since this is a line-based logging system, line buffering cannot be turned
103 # off, i.e. a newline always causes a flush.

Callers 1

_write_chunkMethod · 0.95

Calls 3

writeMethod · 0.45
joinMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected