ソースを参照

tools/log_hashing: fix Python 3 compatibility issue

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Gerard Marull-Paretas 2 ヶ月 前
コミット
728b578296
1 ファイル変更1 行追加1 行削除
  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
             # still alive
             continue
-        except socket.error, e:
+        except socket.error as e:
             # connection fails -> terminate loop
             raise SerialException('connection failed (%s)' % e)
     return bytes(data)