#NEWLINE# def update( self , config = None , **kwargs ) : #NEWLINE# #INDENT# '\n        Update by either dict or :class:`Config`.\n\n        :param config: either dict or instance of :class:`Config`\n        :param kwargs:\n        ' #NEWLINE# self . _update ( config ) #NEWLINE# if ( config is not None ) : #NEWLINE# #INDENT# if isinstance ( config , dict ) : #NEWLINE# #INDENT# self . _update ( config ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _update ( config . conf )