<s> from contextlib import contextmanager <EOL> @ contextmanager <EOL> def drop_connected_signals ( signal ) : <EOL> """<STR_LIT>""" <EOL> connected_signals = signal . receivers <EOL> signal . receivers = [ ] <EOL> try : <EOL> yield <EOL> finally : <EOL> signal . receivers = connected_signals </s>
