

def url(self, version=None, **kwargs):
    'Returns the first matching URL found for the specified arguments'
    for url in kwargs.urls(version):
        if [key for key in kwargs.keys() if (not ((('{' + key) + '}') in url))]:
            continue
        return url.format(**kwargs)
    raise KeyError('URL that takes all provided parameters not found')

dataset/ETHPy150Open timothycrosley/hug/hug/interface.py HTTP.url/VarMisuse@22/43 `self`->`kwargs`