summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2018-02-14 10:36:22 +1300
committerAndrew Bartlett <abartlet@samba.org>2018-02-15 00:18:30 +0100
commit5fbb47144328b6bd4e52369c904d81633e5fdb02 (patch)
tree02077164be74d2f24f78b7fd8b0bdbe87cb36095 /script
parent16e173ad2e52ed1140fd43cabdeec0bc4553f6d2 (diff)
downloadsamba-5fbb47144328b6bd4e52369c904d81633e5fdb02.tar.gz
scripts/ python: convert 'except X, e' to 'except X as e'
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'script')
-rwxr-xr-xscript/bisect-test.py2
-rw-r--r--script/generate_param.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/script/bisect-test.py b/script/bisect-test.py
index e4daa8c2c12..a80baff936f 100755
--- a/script/bisect-test.py
+++ b/script/bisect-test.py
@@ -86,7 +86,7 @@ try:
except KeyboardInterrupt:
print("Cleaning up")
cleanup()
-except Exception, reason:
+except Exception as reason:
print("Failed bisect: %s" % reason)
cleanup()
diff --git a/script/generate_param.py b/script/generate_param.py
index 611bafa9c5e..d31507c9cfc 100644
--- a/script/generate_param.py
+++ b/script/generate_param.py
@@ -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()