#NEWLINE# def get_safe_settings( ) : #NEWLINE# #INDENT# 'Returns a dictionary of the settings module, with sensitive settings blurred out.' #NEWLINE# settings_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for k in dir ( settings ) : #NEWLINE# #INDENT# if k . isupper ( ) : #NEWLINE# #INDENT# settings_dict [ k ] = cleanse_setting ( k , getattr ( settings , k ) ) #NEWLINE# #UNINDENT# #UNINDENT# return settings_dict