def read_transaction(self): line = self.readline() if not line.endswith('\n'): return # EOF reached return Transaction.from_str(line.strip())