#NEWLINE# @ staticmethod #NEWLINE# def from_dict( source ) : #NEWLINE# #INDENT# def _transform( d ) : #NEWLINE# #INDENT# " Turns a nested dict into nested AttrDict's " #NEWLINE# for ( k , v ) in d . iteritems ( ) : #NEWLINE# #INDENT# if isinstance ( v , dict ) : #NEWLINE# #INDENT# d [ k ] = _transform ( v ) #NEWLINE# #UNINDENT# #UNINDENT# return AttrDict ( d ) #NEWLINE# #UNINDENT# return _transform ( source )