#NEWLINE# def close( self ) : #NEWLINE# #INDENT# '\n        Close any connections required for this datastore.\n        ' #NEWLINE# log . trace ( 'Closing connection to %s' , self . datastore_name ) #NEWLINE# if hasattr ( self . server . resource . session , 'conns' ) : #NEWLINE# #INDENT# conns = self . server . resource . session . conns #NEWLINE# self . server . resource . session . conns = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# conns = self . server . resource . session . connection_pool . conns #NEWLINE# self . server . resource . session . connection_pool . conns = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# map ( ( lambda x : map ( ( lambda y : y . close ( ) ) , x ) ) , conns . values ( ) )