Change startwith or statement to use tupple of strings rather than or.

This commit is contained in:
Tom Archer 2020-05-22 15:56:48 +01:00
parent 5c8c6b3c92
commit 0b93480808

View File

@ -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