#NEWLINE# def __init__( self , yaml_file ) : #NEWLINE# #INDENT# if isinstance ( yaml_file , str ) : #NEWLINE# #INDENT# f = open ( yaml_file ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# f = yaml_file #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . conf = PropertyObject ( yaml . load ( f ) ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# f . close ( ) #NEWLINE# #UNINDENT# for ( k , v ) in self . conf . iteritems ( ) : #NEWLINE# #INDENT# if ( not k . startswith ( '_' ) ) : #NEWLINE# #INDENT# if isinstance ( v , dict ) : #NEWLINE# #INDENT# v = PropertyObject ( v ) #NEWLINE# #UNINDENT# setattr ( self , k , v )