tools: Fix pyboard.py to work under Python 3.

pull/1668/head
Damien George 2015-12-08 12:55:28 +00:00
rodzic f4fcc14cfb
commit bbe2e22fcb
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -128,7 +128,7 @@ class Pyboard:
try:
self.serial = serial.Serial(device, baudrate=baudrate, interCharTimeout=1)
break
except OSError, IOError: # Py2 and Py3 have different errors
except (OSError, IOError): # Py2 and Py3 have different errors
if wait == 0:
continue
if attempt == 0: