#NEWLINE# def close( self , all_fds = False ) : #NEWLINE# #INDENT# fds = all_fds . fds #NEWLINE# self . reactor . removeAll ( ) #NEWLINE# for c in self . reactor . getDelayedCalls ( ) : #NEWLINE# #INDENT# c . cancel ( ) #NEWLINE# #UNINDENT# if all_fds : #NEWLINE# #INDENT# for fd in fds . values ( ) : #NEWLINE# #INDENT# self . close_fd ( fd . fileobj )