Use parameter unpacking in call to DeviceEvent constructor.
[platform/core/uifw/at-spi2-atk.git] / 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