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:
parent
16e173ad2e
commit
5fbb471443
@ -86,7 +86,7 @@ try:
|
||||
except KeyboardInterrupt:
|
||||
print("Cleaning up")
|
||||
cleanup()
|
||||
except Exception, reason:
|
||||
except Exception as reason:
|
||||
print("Failed bisect: %s" % reason)
|
||||
cleanup()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user