MCPcopy Create free account
hub / github.com/METR/vivaria / flush

Method flush

pyhooks/pyhooks/python_server.py:104–111  ·  view source on GitHub ↗

required for compatibility

(self)

Source from the content-addressed store, hash-verified

102 pass
103
104 def flush(self):
105 "required for compatibility"
106 files = self.which_files.get(get_thread_id(), [self.default])
107 for file in files:
108 try:
109 file.flush()
110 except: # noqa: E722
111 pass
112
113
114stdout = sys.stdout = OutputTee(real_stdout)

Callers 2

_temp_key_fileFunction · 0.45
flushMethod · 0.45

Calls 2

get_thread_idFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected