Browse Source

undeleted util.py and ran 2to3 on it

pyserial_fix
Kevin Gottsman 8 years ago
parent
commit
a4b329573d
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      alarmdecoder/util.py

+ 3
- 3
alarmdecoder/util.py View File

@@ -144,7 +144,7 @@ class Firmware(object):
else:
position = 0

except Exception, err:
except Exception as err:
pass

if timer:
@@ -186,7 +186,7 @@ class Firmware(object):
dev.write("=")
read_until('!load', timeout=15.0)

except TimeoutError, err:
except TimeoutError as err:
retry -= 1
else:
retry = 0
@@ -196,7 +196,7 @@ class Firmware(object):
if found_loader:
try:
do_upload()
except UploadError, err:
except UploadError as err:
stage_callback(Firmware.STAGE_ERROR, error=str(err))
else:
stage_callback(Firmware.STAGE_DONE)


Loading…
Cancel
Save