#NEWLINE# def unbuildReactor( self , reactor ) : #NEWLINE# #INDENT# '\n        Clean up any resources which may have been allocated for the given\n        reactor by its creation or by a test which used it.\n        ' #NEWLINE# reactor . _uninstallHandler ( ) #NEWLINE# if ( getattr ( reactor , '_internalReaders' , None ) is not None ) : #NEWLINE# #INDENT# for reader in reactor . _internalReaders : #NEWLINE# #INDENT# reactor . removeReader ( reader ) #NEWLINE# reader . connectionLost ( None ) #NEWLINE# #UNINDENT# reactor . _internalReaders . clear ( ) #NEWLINE# #UNINDENT# reactor . disconnectAll ( ) #NEWLINE# calls = reactor . getDelayedCalls ( ) #NEWLINE# for c in self : #NEWLINE# #INDENT# c . cancel ( )