#NEWLINE# def safe_key( self , key ) : #NEWLINE# #INDENT# if ( ( ' ' in key ) or ( '\n' in key ) ) : #NEWLINE# #INDENT# log . warning ( ( 'BAD KEY: "%s"' % self ) ) #NEWLINE# return '' #NEWLINE# #UNINDENT# return key