aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-08-10 17:20:39 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-08-10 17:20:39 -0400
commit2618fc5b698f1ac779e85b2994e362a547f82d6e (patch)
tree78729cc0b3cb50dbb0168089ab81cb7317c1ba40
parent7f964c5fc1eae683aa161a59be6565ba03eb10a3 (diff)
downloadlibrambutan-2618fc5b698f1ac779e85b2994e362a547f82d6e.tar.gz
librambutan-2618fc5b698f1ac779e85b2994e362a547f82d6e.zip
stm32loader.py: replace obsolete exception catch syntax.
For Python 3 support. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
-rwxr-xr-xsupport/stm32loader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/stm32loader.py b/support/stm32loader.py
index d25b680..50686bf 100755
--- a/support/stm32loader.py
+++ b/support/stm32loader.py
@@ -422,7 +422,7 @@ if __name__ == "__main__":
try:
opts, args = getopt.getopt(sys.argv[1:], "hqVewvrp:b:a:l:")
- except getopt.GetoptError, err:
+ except getopt.GetoptError as err:
# print help information and exit:
print(str(err)) # will print something like "option -a not recognized"
usage()