summaryrefslogtreecommitdiff
path: root/git/test/test_fun.py
diff options
context:
space:
mode:
authorHugo <hugovk@users.noreply.github.com>2018-03-18 21:50:16 +0200
committerHugo <hugovk@users.noreply.github.com>2018-03-18 22:26:31 +0200
commitdb0dfa07e34ed80bfe0ce389da946755ada13c5d (patch)
treedb0f3601ad1c44986953678a61ff59e8aa14e1a4 /git/test/test_fun.py
parent87a644184b05e99a4809de378f21424ef6ced06e (diff)
downloadgitpython-db0dfa07e34ed80bfe0ce389da946755ada13c5d.tar.gz
Unnecessary generator - rewrite as a set comprehension
Diffstat (limited to 'git/test/test_fun.py')
-rw-r--r--git/test/test_fun.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/test/test_fun.py b/git/test/test_fun.py
index d5e6e50d..314fb734 100644
--- a/git/test/test_fun.py
+++ b/git/test/test_fun.py
@@ -211,7 +211,7 @@ class TestFun(TestBase):
def _assert_tree_entries(self, entries, num_trees):
for entry in entries:
assert len(entry) == num_trees
- paths = set(e[2] for e in entry if e)
+ paths = {e[2] for e in entry if e}
# only one path per set of entries
assert len(paths) == 1