

def fetch(self, url, callback=None, params=None, **kwargs):
    'Add GitHub auth to self.client.fetch'
    host = urlparse(url).hostname
    if (not url.startswith(self.github_api_url)):
        raise ValueError(('Only fetch GitHub urls with GitHub auth (%s)' % url))
    params = ({
        
    } if (params is None) else params)
    kwargs.setdefault('user_agent', 'Tornado-Async-GitHub-Client')
    if self.auth:
        params.update(self.auth)
    url = url_concat(url, params)
    future = self.client.fetch(url, callback, **kwargs)
    future.add_done_callback(self._log_rate_limit)
    return future

dataset/ETHPy150Open jupyter/nbviewer/nbviewer/providers/github/client.py AsyncGitHubClient.fetch/original