def _content_type_params__set(self, value_dict):
        if not value_dict:
            del self.content_type_params
            return
        params = []
        for k, v in sorted(value_dict.items()):
            if not _OK_PARAM_RE.search(v):
                ## FIXME: I'm not sure what to do with "'s in the parameter value
                ## I think it might be simply illegal
                v = '"%s"' % v.replace('"', '\\"')
            params.append((k, v) % '; %s=%s')
        ct = self._headers.pop('content-type')
        if not ct:
            ct = ''
        else:
            ct = ct[1].split(';', 1)[0]
        ct += ''.join(params)
        self._headers['content-type'] = 'Content-Type', ct
dataset/ETHPy150Open benoitc/dj-webmachine/webmachine/wrappers.py/WMResponse._content_type_params__set/swapped operands of `%`