

def get_tree_entry(self, user, repo, path, ref='master', callback=None, **kwargs):
    'Get a single tree entry for a path\n        \n        Useful for finding the blob url for a given path.\n        '
    if ('/' in path):
        kwargs['recursive'] = True
    f = Future()

    def cb(response):
        try:
            tree_entry = self._extract_tree_entry(path, response)
        except Exception as e:
            f.set_exception(e)
            return
        if callback:
            result = callback(tree_entry)
        else:
            result = tree_entry
        f.set_result(result)
    self.get_tree(user, repo, ref=ref, callback=cb, **kwargs)
    return self

dataset/ETHPy150Open jupyter/nbviewer/nbviewer/providers/github/client.py AsyncGitHubClient.get_tree_entry/VarMisuse@145/211 `f`->`self`