#NEWLINE# def _get_attr( self , doc , name , default = '' , upper = False ) : #NEWLINE# #INDENT# name = ( 'ROBOT_LIBRARY_' + name ) #NEWLINE# for field in doc . fields ( ) : #NEWLINE# #INDENT# if ( ( field . name ( ) == name ) and field . isPublic ( ) ) : #NEWLINE# #INDENT# value = field . constantValue ( ) #NEWLINE# if upper : #NEWLINE# #INDENT# value = utils . normalize ( value , ignore = '_' ) . upper ( ) #NEWLINE# #UNINDENT# return value #NEWLINE# #UNINDENT# #UNINDENT# return default