#NEWLINE# def _load_raw_struct( source ) : #NEWLINE# #INDENT# 'Load a raw dict config structure from the specified source.' #NEWLINE# if isinstance ( source , basestring ) : #NEWLINE# #INDENT# if os . path . isfile ( source ) : #NEWLINE# #INDENT# raw = load_struct_from_file ( filepath = source ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ConfigError ( 'File "{}" does not exit' . format ( source ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( source , dict ) : #NEWLINE# #INDENT# raw = source #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ConfigError ( 'Unknown config source: {}' . format ( source ) ) #NEWLINE# #UNINDENT# #UNINDENT# return raw