power/darwin.py
def stopPowerNotificationsThread(self):
        """Removes the only source from NSRunLoop and cancels thread."""
        assert NSThread.currentThread() == self._thread

        CFRunLoopSourceInvalidate(self._source)
        self._source = None
        NSThread.currentThread().cancel()
Removes the only source from NSRunLoop and cancels thread.
Removes the only source from NSRunLoop and cancels thread.
Removes the only source from NSRunLoop and cancels thread .
def stopPowerNotificationsThread(self):
        assert NSThread.currentThread() == self._thread
        CFRunLoopSourceInvalidate(self._source)
        self._source = None
        NSThread.currentThread().cancel()
def stopPowerNotificationsThread ( self ) : assert NSThread . currentThread ( ) == self . _thread CFRunLoopSourceInvalidate ( self . _source ) self . _source = None NSThread . currentThread ( ) . cancel ( )
Removes the only source from NSRunLoop and cancels thread.
Removes the only source from NSRunLoop and cancels thread .
"""Removes the only source from NSRunLoop and cancels thread."""
self