samba python tests: convert 'except X, (tuple)' to 'except X as e'
authorNoel Power <noel.power@suse.com>
Fri, 23 Feb 2018 14:32:17 +0000 (14:32 +0000)
committerDouglas Bagnall <dbagnall@samba.org>
Wed, 28 Feb 2018 22:01:40 +0000 (23:01 +0100)
commit0de23d27d6b01f2501d076cc98f48ee72c48d50a
tree3593385f843da73b98c14c3e661c3b3b5c1e2271
parent52729d35495db638c84caa8cc6f5ffdf0b670353
samba python tests: convert 'except X, (tuple)' to 'except X as e'

In addition to converting the except line another line is also added
for each except to extract the tuple contents.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/auth_log_pass_change.py
python/samba/tests/dns.py
python/samba/tests/samba_tool/fsmo.py
python/samba/tests/samdb_api.py