def _xblock_type_and_display_name(xblock):
 return _('{section_or_subsection} "{display_name}"').format(section_or_subsection=xblock_type_display_name(xblock), display_name=xblock.display_name_with_default)

def _xblock_type_and_display_name ( xblock ) : return _ ( '{section_or_subsection} "{display_name}"' ) . format ( section_or_subsection = xblock_type_display_name ( xblock ) , display_name = xblock . display_name_with_default )
returns a string representation of the xblocks type and display name .