aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/qed.py
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-12-18 08:52:44 +0100
committerMarkus Armbruster <armbru@redhat.com>2016-02-08 17:29:54 +0100
commit03e188102ca8d2eab16a8d0e7818c533a93bb799 (patch)
treeff7ef0966cf31e7e78a3e82a11d714f77fa8e1fb /tests/qemu-iotests/qed.py
parent86b227d984fde7069c49ceb92828a965baa11186 (diff)
tests: Use Python 2.6 "except E as ..." syntax
PEP 8 calls for it, because it's forward compatible with Python 3. Supported since Python 2.6, which we require (commit fec2103). Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Acked-by: Stefan Hajnoczi <stefanha@redhat.com> Message-Id: <1450425164-24969-5-git-send-email-armbru@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/qed.py')
-rwxr-xr-xtests/qemu-iotests/qed.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/qed.py b/tests/qemu-iotests/qed.py
index 52ff845590..748068d7fe 100755
--- a/tests/qemu-iotests/qed.py
+++ b/tests/qemu-iotests/qed.py
@@ -227,7 +227,7 @@ def main():
qed = QED(open(filename, 'r+b'))
try:
globals()[cmd](qed, *sys.argv[3:])
- except TypeError, e:
+ except TypeError as e:
sys.stderr.write(globals()[cmd].__doc__ + '\n')
sys.exit(1)