#NEWLINE# def _yield_instance_profiles( conn ) : #NEWLINE# #INDENT# 'Yield (profile_name, role_name, role_document).\n\n    role_name and role_document are None for empty instance profiles\n    ' #NEWLINE# for resp in _repeat ( conn . list_instance_profiles ) : #NEWLINE# #INDENT# for profile_data in resp [ 'instance_profiles' ] : #NEWLINE# #INDENT# profile_name = profile_data [ 'instance_profile_name' ] #NEWLINE# if profile_data [ 'roles' ] : #NEWLINE# #INDENT# role_data = profile_data [ 'roles' ] [ 'member' ] #NEWLINE# ( role_name , role_document ) = _get_role_name_and_document ( role_data ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# role_name = None #NEWLINE# role_document = None #NEWLINE# #UNINDENT# ( yield ( profile_name , role_name , role_document ) )