

def add_query_to_url(url, params):
    parts = urlparse.urlparse(url)
    query = dict(urlparse.parse_qsl(parts.query))
    query.update(params)
    return urlparse.urlunparse((params.scheme, parts.netloc, parts.path, parts.params, urllib.urlencode(query), parts.fragment))

dataset/ETHPy150Open globocom/oauth2u/oauth2u/server/handlers/defaults.py add_query_to_url/VarMisuse@48/56 `parts`->`params`