summaryrefslogtreecommitdiffstatshomepage
path: root/tools/pyboard.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-12-08 12:55:28 +0000
committerDamien George <damien.p.george@gmail.com>2015-12-08 12:55:28 +0000
commitbbe2e22fcb3bf83b03ad25856e29995987e1fc40 (patch)
tree74d88bbf554d63ab102752421e7af0e4ded4842c /tools/pyboard.py
parentf4fcc14cfb69aeae381a2931eb1f606a2975b1e7 (diff)
downloadmicropython-bbe2e22fcb3bf83b03ad25856e29995987e1fc40.tar.gz
micropython-bbe2e22fcb3bf83b03ad25856e29995987e1fc40.zip
tools: Fix pyboard.py to work under Python 3.
Diffstat (limited to 'tools/pyboard.py')
-rwxr-xr-xtools/pyboard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pyboard.py b/tools/pyboard.py
index 3ff694a7c8..925e16bc60 100755
--- a/tools/pyboard.py
+++ b/tools/pyboard.py
@@ -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: