diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-08-10 17:20:39 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-08-10 17:20:39 -0400 |
commit | 2618fc5b698f1ac779e85b2994e362a547f82d6e (patch) | |
tree | 78729cc0b3cb50dbb0168089ab81cb7317c1ba40 | |
parent | 7f964c5fc1eae683aa161a59be6565ba03eb10a3 (diff) | |
download | librambutan-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-x | support/stm32loader.py | 2 |
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() |