#NEWLINE# def _set_keyspace_for_all_conns( self , keyspace , callback ) : #NEWLINE# #INDENT# if ( self . is_shutdown or ( not self . _connection ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# def connection_finished_setting_keyspace( conn , error ) : #NEWLINE# #INDENT# self . return_connection ( conn ) #NEWLINE# errors = ( [ ] if ( not error ) else [ error ] ) #NEWLINE# callback ( self , errors ) #NEWLINE# #UNINDENT# self . _connection . set_keyspace_async ( keyspace , self )