23 if 'parsed_url' not in result:
26 query = result[
'parsed_url'].query
30 parsed_query = parse_qsl(query)
33 for i, (param_name, _)
in enumerate(list(parsed_query)):
35 if reg.match(param_name):
36 parsed_query.pop(i - changes)
38 result[
'parsed_url'] = result[
'parsed_url']._replace(query=urlencode(parsed_query))
39 result[
'url'] = urlunparse(result[
'parsed_url'])