#NEWLINE# def from_yaml( self , path ) : #NEWLINE# #INDENT# with open ( path ) as f : #NEWLINE# #INDENT# c = yaml . load ( f ) #NEWLINE# #UNINDENT# for name in self . _possible_names ( ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# c = c [ name ] #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# app = self . get_app ( ) #NEWLINE# for key in c . iterkeys ( ) : #NEWLINE# #INDENT# if key . isupper ( ) : #NEWLINE# #INDENT# app . config [ key ] = c [ key ]