scripts/ python: convert 'except X, e' to 'except X as e'
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Tue, 13 Feb 2018 21:36:22 +0000 (10:36 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 14 Feb 2018 23:18:30 +0000 (00:18 +0100)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
script/bisect-test.py
script/generate_param.py

index e4daa8c2c12b2442c33f23c371b1cba12c66dd5c..a80baff936fa2d383ea5218b65035ded1a54b623 100755 (executable)
@@ -86,7 +86,7 @@ try:
 except KeyboardInterrupt:
     print("Cleaning up")
     cleanup()
-except Exception, reason:
+except Exception as reason:
     print("Failed bisect: %s" % reason)
     cleanup()
 
index 611bafa9c5e11f0db836f4c69fcc68f7ae4ed3d7..d31507c9cfc1dac7edea85bd2d62a10ca1cd5212 100644 (file)
@@ -55,7 +55,7 @@ def iterate_all(path):
 
     try:
         p = open(path, 'r')
-    except IOError, e:
+    except IOError as e:
         raise Exception("Error opening parameters file")
     out = p.read()