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

Method flush

Lib/logging/__init__.py:1131–1137  ·  view source on GitHub ↗

Flushes the stream.

(self)

Source from the content-addressed store, hash-verified

1129 self.stream = stream
1130
1131 def flush(self):
1132 """
1133 Flushes the stream.
1134 """
1135 with self.lock:
1136 if self.stream and hasattr(self.stream, "flush"):
1137 self.stream.flush()
1138
1139 def emit(self, record):
1140 """

Callers 3

emitMethod · 0.95
setStreamMethod · 0.95

Calls 2

hasattrFunction · 0.85
flushMethod · 0.45

Tested by 1