This commit is contained in:
Akhil Narayanan 2026-01-06 03:58:15 -08:00 committed by GitHub
commit 3cbceac393
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -370,10 +370,13 @@ try:
pass pass
with std_log_lock: with std_log_lock:
if self.is_stdout: try:
original_stdout.flush() if self.is_stdout:
else: original_stdout.flush()
original_stderr.flush() else:
original_stderr.flush()
except (OSError, ValueError):
pass
def close(self): def close(self):
self.flush() self.flush()