platypush/event/__init__.py
def unregister_handler(self, event_type, callback):
        """
        Unregisters a callback handler from a camera event type.

        :param event_type: Event type the callback is registered to
        :type event_type: :class:`platypush.message.event.Event` or a subclass

        :param callback: Callback function to unregister
        :type callback: function
        """

        if event_type not in self._event_handlers:
            return
        if callback not in self._event_handlers[event_type]:
            return

        self._event_handlers[event_type].remove(callback)

        if not self._event_handlers[event_type]:
            del self._event_handlers[event_type]

        Unregisters a callback handler from a camera event type.

        :param event_type: Event type the callback is registered to
        :type event_type: :class:`platypush.message.event.Event` or a subclass

        :param callback: Callback function to unregister
        :type callback: function
        
Unregisters a callback handler from a camera event type.
Unregisters a callback handler from a camera event type .
def unregister_handler(self, event_type, callback):
        if event_type not in self._event_handlers:
            return
        if callback not in self._event_handlers[event_type]:
            return
        self._event_handlers[event_type].remove(callback)
        if not self._event_handlers[event_type]:
            del self._event_handlers[event_type]
def unregister_handler ( self , event_type , callback ) : if event_type not in self . _event_handlers : return if callback not in self . _event_handlers [ event_type ] : return self . _event_handlers [ event_type ] . remove ( callback ) if not self . _event_handlers [ event_type ] : del self . _event_handlers [ event_type ]
Unregisters a callback handler from a camera event type.
Unregisters a callback handler from a camera event type .
"""
        Unregisters a callback handler from a camera event type.

        :param event_type: Event type the callback is registered to
        :type event_type: :class:`platypush.message.event.Event` or a subclass

        :param callback: Callback function to unregister
        :type callback: function
        """
self
event_type
Event type the callback is registered to
Event type the callback is registered to
callback
Callback function to unregister
Callback function to unregister