summaryrefslogtreecommitdiff
path: root/scripts/qmp/qemu-ga-client
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-12-18 08:52:42 +0100
committerMarkus Armbruster <armbru@redhat.com>2016-02-08 17:29:54 +0100
commitcf6c63456b47118a7f0fbb917c220c0a483db6de (patch)
treec17387899208582087074bc5685b8328b76b5866 /scripts/qmp/qemu-ga-client
parent291928a80f39670929fcce222acd5e21d1434692 (diff)
downloadqemu-cf6c63456b47118a7f0fbb917c220c0a483db6de.zip
scripts/qmp: 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-3-git-send-email-armbru@redhat.com>
Diffstat (limited to 'scripts/qmp/qemu-ga-client')
-rwxr-xr-xscripts/qmp/qemu-ga-client2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qmp/qemu-ga-client b/scripts/qmp/qemu-ga-client
index 9908f21093..fd056056ff 100755
--- a/scripts/qmp/qemu-ga-client
+++ b/scripts/qmp/qemu-ga-client
@@ -259,7 +259,7 @@ def main(address, cmd, args):
try:
client = QemuGuestAgentClient(address)
- except QemuGuestAgent.error, e:
+ except QemuGuestAgent.error as e:
import errno
print(e)