<s> '''<STR_LIT>''' <EOL> import logging <EOL> import copy <EOL> import mc_states . api <EOL> import hmac <EOL> import hashlib <EOL> __name = '<STR_LIT>' <EOL> log = logging . getLogger ( __name__ ) <EOL> def settings ( ) : <EOL> '''<STR_LIT>''' <EOL> @ mc_states . api . lazy_subregistry_get ( __salt__ , __name ) <EOL> def _settings ( ) : <EOL> grains = __grains__ <EOL> pillar = __pillar__ <EOL> uwsgi_reg = __salt__ [ <EOL> '<STR_LIT>' ] ( <EOL> '<STR_LIT>' , registry_format = '<STR_LIT>' ) <EOL> locs = __salt__ [ '<STR_LIT>' ] ( ) <EOL> data = __salt__ [ '<STR_LIT>' ] ( <EOL> '<STR_LIT>' , { <EOL> '<STR_LIT>' : [ '<STR_LIT>' , '<STR_LIT>' ] , <EOL> '<STR_LIT>' : locs [ '<STR_LIT>' ] + "<STR_LIT>" , <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT>' : "<STR_LIT:yes>" , <EOL> '<STR_LIT>' : "<STR_LIT:yes>" , <EOL> '<STR_LIT>' : "<STR_LIT>" , <EOL> '<STR_LIT>' : "<STR_LIT>" , <EOL> } , <EOL> } ) <EOL> __salt__ [ '<STR_LIT>' ] ( <EOL> '<STR_LIT>' , uwsgi_reg , <EOL> registry_format = '<STR_LIT>' ) <EOL> return data <EOL> return _settings ( ) <EOL> def config_settings ( config_name , config_file , enabled , ** kwargs ) : <EOL> '''<STR_LIT>''' <EOL> uwsgiSettings = copy . deepcopy ( __salt__ [ '<STR_LIT>' ] ( ) ) <EOL> extra = kwargs . pop ( '<STR_LIT>' , { } ) <EOL> kwargs . update ( extra ) <EOL> kwargs . setdefault ( '<STR_LIT>' , config_name ) <EOL> kwargs . setdefault ( '<STR_LIT>' , config_file ) <EOL> kwargs . setdefault ( '<STR_LIT>' , enabled ) <EOL> uwsgiSettings = __salt__ [ '<STR_LIT>' ] ( uwsgiSettings , kwargs ) <EOL> uwsgiSettings [ '<STR_LIT:data>' ] = copy . deepcopy ( uwsgiSettings ) <EOL> uwsgiSettings [ '<STR_LIT:data>' ] [ '<STR_LIT>' ] = copy . deepcopy ( uwsgiSettings ) <EOL> uwsgiSettings [ '<STR_LIT>' ] = copy . deepcopy ( uwsgiSettings ) <EOL> return uwsgiSettings </s>
