Add missing isatty() to _ConsoleCapture stream wrapper (#24143)
This commit is contained in:
parent
b7e4aa6a0f
commit
75acff57c2
@ -270,6 +270,10 @@ class ConsoleLogger:
|
||||
"""Flush the wrapped stream to propagate buffered output promptly during console capture."""
|
||||
self.original.flush()
|
||||
|
||||
def isatty(self):
|
||||
"""Delegate isatty check to the original stream."""
|
||||
return self.original.isatty()
|
||||
|
||||
class _LogHandler(logging.Handler):
|
||||
"""Lightweight logging handler."""
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user