Using set comprehension

Suggestion by anthrotype

Co-authored-by: Cosimo Lupo <cosimo@anthrotype.com>
This commit is contained in:
Colin M. Ford 2023-04-06 10:34:48 -04:00 committed by GitHub
parent 579d0dce31
commit edc3584d5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ def test(glyphsets, glyphs=None, names=None, ignore_missing=False):
if glyphs is None:
# `glyphs = glyphsets[0].keys()` is faster, certainly, but doesn't allow for sparse TTFs/OTFs given out of order
# ... risks the sparse master being the first one, and only processing a subset of the glyphs
glyphs = set([g for glyphset in glyphsets for g in glyphset.keys()])
glyphs = {g for glyphset in glyphsets for g in glyphset.keys()}
hist = []
problems = OrderedDict()