def __str__(self):
        ret = "%s/%s" % (self.main_type, self.sub_type)
        for key, val in self.params.items():
            ret += "; %s=%s" % (key, val)
        return ret
dataset/ETHPy150Open tomchristie/django-rest-framework/rest_framework/utils/mediatypes.py/_MediaType.__str__/original