#NEWLINE# def normalize_name( self , name ) : #NEWLINE# #INDENT# name = ( name and name . rstrip ( ) ) #NEWLINE# if ( name is None ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( name . upper ( ) == name ) and ( not self . identifier_preparer . _requires_quotes ( name . lower ( ) ) ) ) : #NEWLINE# #INDENT# return name . lower ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self