#NEWLINE# def __init__( self , name = None , attrs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , text = None , **kwargs ) : #NEWLINE# #INDENT# self . name = self . _normalize_search_value ( name ) #NEWLINE# if ( not isinstance ( attrs , dict ) ) : #NEWLINE# #INDENT# kwargs [ 'class' ] = attrs #NEWLINE# attrs = None #NEWLINE# #UNINDENT# if ( 'class_' in kwargs ) : #NEWLINE# #INDENT# kwargs [ 'class' ] = kwargs [ 'class_' ] #NEWLINE# del kwargs [ 'class_' ] #NEWLINE# #UNINDENT# if kwargs : #NEWLINE# #INDENT# if attrs : #NEWLINE# #INDENT# attrs = attrs . copy ( ) #NEWLINE# attrs . update ( kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# attrs = kwargs #NEWLINE# #UNINDENT# #UNINDENT# normalized_attrs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( key , value ) in list ( attrs . items ( ) ) : #NEWLINE# #INDENT# normalized_attrs [ kwargs ] = self . _normalize_search_value ( value ) #NEWLINE# #UNINDENT# self . attrs = normalized_attrs #NEWLINE# self . text = self . _normalize_search_value ( text )