Change startwith or statement to use tupple of strings rather than or.
This commit is contained in:
parent
5c8c6b3c92
commit
0b93480808
@ -462,7 +462,7 @@ class UFOReader(_UFOBaseIO):
|
||||
groups = self._getPlist(GROUPS_FILENAME, {})
|
||||
# remove any duplicate glyphs in a kerning group
|
||||
for groupName, glyphList in groups.items():
|
||||
if groupName.startswith('public.kern1.') or groupName.startswith('public.kern2.'):
|
||||
if groupName.startswith(('public.kern1.', 'public.kern2.')):
|
||||
groups[groupName] = list(OrderedDict.fromkeys(glyphList))
|
||||
return groups
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user