summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2011-12-13 11:55:44 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2011-12-13 11:55:44 +0000
commit14225c74b5bd75cf6c4cda3647341dc20214e6b8 (patch)
tree681f90d0f96ac02d393a74f9312de33d1c6f7cb3 /examples
parent959ce518a3b5b8794b9813bac82c64540c21fc31 (diff)
Use Python 3 syntax to catch exceptions
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'examples')
-rw-r--r--examples/example-client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example-client.py b/examples/example-client.py
index 796f262..262f892 100644
--- a/examples/example-client.py
+++ b/examples/example-client.py
@@ -65,7 +65,7 @@ def main():
# D-Bus exceptions are mapped to Python exceptions
try:
iface.RaiseException()
- except dbus.DBusException, e:
+ except dbus.DBusException as e:
print str(e)
# introspection is automatically supported