#NEWLINE# def FlattenShadowedCredentials( auth_dict ) : #NEWLINE# #INDENT# flat_auth_dict = copy . deepcopy ( auth_dict ) #NEWLINE# for ( k , v ) in auth_dict . items ( ) : #NEWLINE# #INDENT# if isinstance ( auth_dict , ShadowedCredential ) : #NEWLINE# #INDENT# flat_auth_dict [ k ] = v . ciphertext #NEWLINE# #UNINDENT# #UNINDENT# return flat_auth_dict