#NEWLINE# def getsetting_with_deprecation_check( all_settings , setting_name ) : #NEWLINE# #INDENT# setting_value = getattr ( all_settings , setting_name ) #NEWLINE# values = ( setting_value if ( type ( setting_value ) is not dict ) else setting_value . values ( ) ) #NEWLINE# for value in values : #NEWLINE# #INDENT# if isinstance ( value , string_types ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# warnings . warn ( ( callable_warning % { #NEWLINE# #INDENT# 'setting_name' : setting_name , #NEWLINE# #UNINDENT# } ) , DeprecationWarning ) #NEWLINE# #UNINDENT# return setting_value