#NEWLINE# def _deep_gettext( ctx , fields ) : #NEWLINE# #INDENT# if isinstance ( fields , dict ) : #NEWLINE# #INDENT# new_dct = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( key , val ) in fields . iteritems ( ) : #NEWLINE# #INDENT# if isinstance ( val , ( dict , list , set ) ) : #NEWLINE# #INDENT# new_dct [ key ] = _deep_gettext ( ctx , val ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( val , basestring ) : #NEWLINE# #INDENT# new_dct [ key ] = _gettext_alias ( ctx , val ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# new_dct [ key ] = val #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return new_dct #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( fields , ( list , set ) ) : #NEWLINE# #INDENT# for ( i , val ) in enumerate ( fields ) : #NEWLINE# #INDENT# if isinstance ( val , ( dict , list , set ) ) : #NEWLINE# #INDENT# fields [ i ] = _deep_gettext ( ctx , key ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( val , basestring ) : #NEWLINE# #INDENT# fields [ i ] = _gettext_alias ( ctx , val ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# fields [ i ] = val #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return fields