1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 22:28:14 +00:00

Use safer RedirectText

This commit is contained in:
Otto Winter 2018-11-30 13:48:10 +01:00
parent 5a269ef284
commit 8495e66ced
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -54,11 +54,8 @@ class RedirectText(object):
def __init__(self, out):
self._out = out
def write(self, s):
self._out.write(s)
def flush(self):
self._out.flush()
def __getattr__(self, item):
return getattr(self._out, item)
def isatty(self):
return True