~edwargix/git.sr.ht

79a2eace360678d8e15ef634f45c531408566c93 — Drew DeVault 7 years ago 09607c8
Fix usage of next()
1 files changed, 2 insertions(+), 2 deletions(-)

M gitsrht/blueprints/repo.py
M gitsrht/blueprints/repo.py => gitsrht/blueprints/repo.py +2 -2
@@ 150,8 150,8 @@ def tree(owner, repo, ref, path):
            entry = tree[part]
            if entry.type == "blob":
                tree = annotate_tree(git_repo, tree, commit)
                commit = next((e.commit for e in tree if e.name == entry.name),
                        default=None)
                commit = next(
                        (e.commit for e in tree if e.name == entry.name), None)
                blob = git_repo.get(entry.id)
                data = None
                if not blob.is_binary: