Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def read_track_logs(self, flight_number):
self.io.write(struct.pack('>BBH', 3, 5, flight_number))
try:
while True:
self.buf += self.io.read()
except TimeoutError:
pass
return self.buf