

def filter_renderers(self, renderers, format):
    "\n        If there is a '.json' style format suffix, filter the renderers\n        so that we only negotiation against those that accept that format.\n        If there is no renderer available, we use MediaFileRenderer.\n        "
    renderers = [renderer for renderer in renderers if (renderer.format == format)]
    if (not renderers):
        renderers = [MediaFileRenderer()]
    return renderers

dataset/ETHPy150Open kobotoolbox/kobocat/onadata/libs/renderers/renderers.py MediaFileContentNegotiation.filter_renderers/original