Use parameter unpacking in call to DeviceEvent constructor.
authorWillie Walker <william.walker@sun.com>
Wed, 22 Apr 2009 14:00:40 +0000 (10:00 -0400)
committerWillie Walker <william.walker@sun.com>
Wed, 22 Apr 2009 14:00:40 +0000 (10:00 -0400)
pyatspi/deviceevent.py

index 4b26ba8..e61d70b 100644 (file)
@@ -536,10 +536,10 @@ class KeyboardDeviceEventListener(_service.Object):
                         AT-SPI observers (False)?
                 @rtype: boolean
                 """
-                # wrap the device event
-                event = DeviceEvent(ev)
                 # TODO Find out where the exceptions are falling in to.
                 try:
+                        # wrap the device event
+                        event = DeviceEvent(*ev)
                         return self._registry.handleDeviceEvent(event, self)
                 except Exception, e:
                         import traceback