#NEWLINE# def close( self ) : #NEWLINE# #INDENT# '\n        Close all pooled connections and disable the pool.\n        ' #NEWLINE# ( old_pool , self . pool ) = ( self . pool , None ) #NEWLINE# try : #NEWLINE# #INDENT# while True : #NEWLINE# #INDENT# conn = old_pool . get ( block = False ) #NEWLINE# if conn : #NEWLINE# #INDENT# conn . close ( ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# except Empty : #NEWLINE# #INDENT# pass