#NEWLINE# def get_attribute( self , node , attr ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# attribute = node . attributes . get ( attr ) #NEWLINE# if ( attribute is not None ) : #NEWLINE# #INDENT# return attribute . value #NEWLINE# #UNINDENT# #UNINDENT# except KeyError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# return None