# # # patch "tracvc/mtn/automate.py" # from [b17b0d676f3b38ba2542b997bcc63c59e49cce23] # to [7d47813a0d0e601356a9a888bb1426cc4c2a8659] # ============================================================ --- tracvc/mtn/automate.py b17b0d676f3b38ba2542b997bcc63c59e49cce23 +++ tracvc/mtn/automate.py 7d47813a0d0e601356a9a888bb1426cc4c2a8659 @@ -97,11 +97,12 @@ def _get_result(self): """Read and concatenate the result packages.""" - result, cont = ('', '') - while cont != 'l': + result = '' + while True: status, cont, val = self._read_packet() result += val - return status, result + if cont == 'l': break + return status, ''.join(result) def _write_cmd(self, cmd, args): """Assemble command and args and send it to mtn."""