mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 15:18:16 +00:00
Use safer RedirectText
This commit is contained in:
parent
5a269ef284
commit
8495e66ced
@ -54,11 +54,8 @@ class RedirectText(object):
|
|||||||
def __init__(self, out):
|
def __init__(self, out):
|
||||||
self._out = out
|
self._out = out
|
||||||
|
|
||||||
def write(self, s):
|
def __getattr__(self, item):
|
||||||
self._out.write(s)
|
return getattr(self._out, item)
|
||||||
|
|
||||||
def flush(self):
|
|
||||||
self._out.flush()
|
|
||||||
|
|
||||||
def isatty(self):
|
def isatty(self):
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user