#NEWLINE# def _apply( self , config ) : #NEWLINE# #INDENT# 'Update self from a dict.' #NEWLINE# which_env = config . get ( 'environment' ) #NEWLINE# if which_env : #NEWLINE# #INDENT# env = self . environments [ which_env ] #NEWLINE# for k in env : #NEWLINE# #INDENT# if ( k not in config ) : #NEWLINE# #INDENT# config [ k ] = env [ k ] #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# dict . update ( self , config ) #NEWLINE# self . namespaces ( config )