예제 #1
0
파일: signal.py 프로젝트: heartsg/dscrapy
def disconnect_all(signal=Any, sender=Any):
    """Disconnect all signal handlers. Useful for cleaning up after running
    tests
    """
    for receiver in liveReceivers(getAllReceivers(sender, signal)):
        disconnect(receiver, signal=signal, sender=sender)
예제 #2
0
 def disconnect(self, *a, **kw):
     kw.setdefault('sender', self.sender)
     return dispatcher.disconnect(*a, **kw)