@cached
async def get(self, user, gist_id, filename=''):
    '\n        Encompasses both the case of a single file gist, handled by\n        `file_get`, as well as a many-file gist, handled by `tree_get`.\n        '
    parsed_gist = (await self.parse_gist(user, gist_id, filename))
    if (parsed_gist is not None):
        (user, gist_id, gist, files, many_files_gist) = parsed_gist
    else:
        return
    if (many_files_gist and (not filename)):
        (await self.tree_get(user, gist_id, gist, files))
    else:
        if ((not many_files_gist) and (not filename)):
            filename = list(files.keys())[0]
        if (filename not in files):
            raise web.HTTPError(404, 'No such file in gist: %s (%s)', filename, list(files.keys()))
        file = files[filename]
        (await self.file_get(user, gist_id, filename, gist, many_files_gist, file))
Encompasses both the case of a single file gist, handled by
`file_get`, as well as a many-file gist, handled by `tree_get`.
@cached
async def get(self, user, gist_id, filename=):
    '\n        Encompasses both the case of a single file gist, handled by\n        `file_get`, as well as a many-file gist, handled by `tree_get`.\n        '
    parsed_gist = (await self.parse_gist(user, gist_id, filename))
    if (parsed_gist is not None):
        (user, gist_id, gist, files, many_files_gist) = parsed_gist
    else:
        return
    if (many_files_gist and (not filename)):
        (await self.tree_get(user, gist_id, gist, files))
    else:
        if ((not many_files_gist) and (not filename)):
            filename = list(files.keys())[0]
        if (filename not in files):
            raise web.HTTPError(404, 'No such file in gist: %s (%s)', filename, list(files.keys()))
        file = files[filename]
        (await self.file_get(user, gist_id, filename, gist, many_files_gist, file))