From 0b9348080853ab637c4826a4aa293a2b4d60449c Mon Sep 17 00:00:00 2001 From: Tom Archer Date: Fri, 22 May 2020 15:56:48 +0100 Subject: [PATCH] Change startwith or statement to use tupple of strings rather than or. --- Lib/fontTools/ufoLib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/fontTools/ufoLib/__init__.py b/Lib/fontTools/ufoLib/__init__.py index 38e44ecd7..4b92102d9 100755 --- a/Lib/fontTools/ufoLib/__init__.py +++ b/Lib/fontTools/ufoLib/__init__.py @@ -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