From 2618fc5b698f1ac779e85b2994e362a547f82d6e Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Fri, 10 Aug 2012 17:20:39 -0400 Subject: stm32loader.py: replace obsolete exception catch syntax. For Python 3 support. Signed-off-by: Marti Bolivar --- support/stm32loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.2.3