diff --git a/src/licensedcode/match_set.py b/src/licensedcode/match_set.py index 105eeb9319e..4895638e544 100644 --- a/src/licensedcode/match_set.py +++ b/src/licensedcode/match_set.py @@ -149,7 +149,7 @@ def high_tids_set_subset(tids_set, len_legalese): """ Return a subset of a set of token ids that are only legalese tokens. """ - return intbitset([i for i in tids_set if i < len_legalese]) + return intbitset(i for i in tids_set if i < len_legalese) def high_tids_multiset_subset(mset, len_legalese):