#NEWLINE# def _clean_column_name( name ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return _clean_name_cache [ name ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# clean = NON_ALPHA_REGEX . sub ( '_' , START_BADCHAR_REGEX . sub ( '' , END_BADCHAR_REGEX . sub ( '' , name ) ) ) #NEWLINE# _clean_name_cache [ name ] = clean #NEWLINE# return clean