

def build_url(base, additional_params=None):
    'Construct a URL based off of base containing all parameters in\n    the query portion of base plus any additional parameters.\n\n    :param base: Base URL\n    :type base: str\n    ::param additional_params: Additional query parameters to include.\n    :type additional_params: dict\n    :rtype: str\n    '
    url = urlparse.urlparse(base)
    query_params = {
        
    }
    query_params.update(urlparse.parse_qsl(url.query, True))
    if (additional_params is not None):
        query_params.update(additional_params)
        for (k, v) in additional_params.iteritems():
            if (v is None):
                query_params.pop(k)
    return urlparse.urlunparse((url.scheme, url.netloc, url.path, url.params, urllib.urlencode(query_params), url.fragment))

dataset/ETHPy150Open StartTheShift/pyoauth2/pyoauth2/utils.py build_url/original