def location_url(response_type, redirect_uri, query):
    if response_type in [["code"], ["token"], ["none"]]:
        return "%s?%s" % (redirect_uri, query)
    else:
        return "%s#%s" % (redirect_uri, query)
dataset/ETHPy150Open rohe/pyoidc/src/oic/oauth2/provider.py/location_url/original