Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
bbe2e22f
Commit
bbe2e22f
authored
Dec 08, 2015
by
Damien George
Browse files
tools: Fix pyboard.py to work under Python 3.
parent
f4fcc14c
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/pyboard.py
View file @
bbe2e22f
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment