How to use the serialio.TimeoutError function in serialio

To help you get started, we’ve selected a few serialio examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github twpayne / flightrecorder / flightrecorder / ascent.py View on Github external
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

serialio

Concurrency agnostic serialio API

GPL-3.0
Latest version published 3 years ago

Package Health Score

57 / 100
Full package analysis