#NEWLINE# def _command( self , sock_info , command , slave_ok = False , value = 1 , check = True , allowable_errors = None , read_preference = ReadPreference . PRIMARY , codec_options = DEFAULT_CODEC_OPTIONS , **kwargs ) : #NEWLINE# #INDENT# 'Internal command helper.' #NEWLINE# if isinstance ( command , string_type ) : #NEWLINE# #INDENT# command = SON ( [ ( command , value ) ] ) #NEWLINE# #UNINDENT# command . update ( kwargs ) #NEWLINE# return sock_info . command ( self . __name , command , slave_ok , read_preference , codec_options , check , allowable_errors )