diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-12-18 08:52:44 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2016-02-08 17:29:54 +0100 |
commit | 03e188102ca8d2eab16a8d0e7818c533a93bb799 (patch) | |
tree | ff7ef0966cf31e7e78a3e82a11d714f77fa8e1fb /tests/qemu-iotests/qed.py | |
parent | 86b227d984fde7069c49ceb92828a965baa11186 (diff) | |
download | qemu-03e188102ca8d2eab16a8d0e7818c533a93bb799.zip qemu-03e188102ca8d2eab16a8d0e7818c533a93bb799.tar.gz qemu-03e188102ca8d2eab16a8d0e7818c533a93bb799.tar.bz2 |
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-x | tests/qemu-iotests/qed.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/qed.py b/tests/qemu-iotests/qed.py index 52ff845..748068d 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) |