power/darwin.py
def remove_observer(self, observer):
        """
        Stops thread and invalidates source.
        """
        super(PowerManagement, self).remove_observer(observer)
        if len(self._weak_observers) == 0:
            if not self._cf_run_loop:
                PowerManagement.notifications_observer.removeObserver_(self)
            else:
                CFRunLoopSourceInvalidate(self._source)
                self._source = None

        Stops thread and invalidates source.
        
Stops thread and invalidates source.
Stops thread and invalidates source .
def remove_observer(self, observer):
        super(PowerManagement, self).remove_observer(observer)
        if len(self._weak_observers) == 0:
            if not self._cf_run_loop:
                PowerManagement.notifications_observer.removeObserver_(self)
            else:
                CFRunLoopSourceInvalidate(self._source)
                self._source = None
def remove_observer ( self , observer ) : super ( PowerManagement , self ) . remove_observer ( observer ) if len ( self . _weak_observers ) == 0 : if not self . _cf_run_loop : PowerManagement . notifications_observer . removeObserver_ ( self ) else : CFRunLoopSourceInvalidate ( self . _source ) self . _source = None
Stops thread and invalidates source.
Stops thread and invalidates source .
"""
        Stops thread and invalidates source.
        """
self
observer