Ver código fonte

tools/log_hashing: fix Python 3 compatibility issue

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Gerard Marull-Paretas 2 meses atrás
pai
commit
728b578296
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      tools/log_hashing/miniterm_co.py

+ 1 - 1
tools/log_hashing/miniterm_co.py

@@ -92,7 +92,7 @@ def socket_serial_read(self, size=1):
             # just need to get out of recv from time to time to check if
             # just need to get out of recv from time to time to check if
             # still alive
             # still alive
             continue
             continue
-        except socket.error, e:
+        except socket.error as e:
             # connection fails -> terminate loop
             # connection fails -> terminate loop
             raise SerialException('connection failed (%s)' % e)
             raise SerialException('connection failed (%s)' % e)
     return bytes(data)
     return bytes(data)