1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-23 06:50:21 +03:00

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>
This commit is contained in:
Douglas Bagnall 2018-02-14 10:36:22 +13:00 committed by Andrew Bartlett
parent 16e173ad2e
commit 5fbb471443
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ try:
except KeyboardInterrupt:
print("Cleaning up")
cleanup()
except Exception, reason:
except Exception as reason:
print("Failed bisect: %s" % reason)
cleanup()

View 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()