power/darwin.py
def on_power_source_notification(self):
        """
        Called in response to IOPSNotificationCreateRunLoopSource() event.
        """
        for weak_observer in self._weak_observers:
            observer = weak_observer()
            if observer:
                observer.on_power_sources_change(self)
                observer.on_time_remaining_change(self)

        Called in response to IOPSNotificationCreateRunLoopSource() event.
        
Called in response to IOPSNotificationCreateRunLoopSource() event.
Called in response to IOPSNotificationCreateRunLoopSource () event .
def on_power_source_notification(self):
        for weak_observer in self._weak_observers:
            observer = weak_observer()
            if observer:
                observer.on_power_sources_change(self)
                observer.on_time_remaining_change(self)
def on_power_source_notification ( self ) : for weak_observer in self . _weak_observers : observer = weak_observer ( ) if observer : observer . on_power_sources_change ( self ) observer . on_time_remaining_change ( self )
Called in response to IOPSNotificationCreateRunLoopSource() event.
Called in response to IOPSNotificationCreateRunLoopSource () event .
"""
        Called in response to IOPSNotificationCreateRunLoopSource() event.
        """
self