mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
autotest: fix interact
This commit is contained in:
parent
77945be031
commit
675c6e27e9
@ -227,6 +227,8 @@ class TeeBoth(object):
|
||||
self.file = None
|
||||
|
||||
def write(self, data):
|
||||
if isinstance(data, bytes):
|
||||
data = data.decode('ascii')
|
||||
self.file.write(data)
|
||||
if not self.suppress_stdout:
|
||||
self.stdout.write(data)
|
||||
|
Loading…
Reference in New Issue
Block a user