#NEWLINE# def disconnect_from( callback , signals ) : #NEWLINE# #INDENT# '\n    Removes a callback from specified signal registries and prevents it from responding\n    to any emitted signal.\n\n    :param callback: A callable registered with smokesignal\n    :param signals: A single signal or list/tuple of signals\n    ' #NEWLINE# if ( not isinstance ( signals , ( list , tuple ) ) ) : #NEWLINE# #INDENT# signals = [ signals ] #NEWLINE# #UNINDENT# for signal in signals : #NEWLINE# #INDENT# if responds_to ( callback , signal ) : #NEWLINE# #INDENT# receivers [ signal ] . remove ( callback )