From 3eef446efe5101cbf5a5f026d34bbf019e609be7 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 23 Aug 2021 16:06:18 -0600 Subject: [PATCH] [ttFont] Address review comments --- Lib/fontTools/ttLib/ttFont.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/fontTools/ttLib/ttFont.py b/Lib/fontTools/ttLib/ttFont.py index 8797a37ba..cd0b843be 100644 --- a/Lib/fontTools/ttLib/ttFont.py +++ b/Lib/fontTools/ttLib/ttFont.py @@ -414,7 +414,7 @@ class TTFont(object): def setGlyphOrder(self, glyphOrder): self.glyphOrder = glyphOrder if hasattr(self, '_reverseGlyphOrderDict'): - delattr(self, '_reverseGlyphOrderDict') + del self._reverseGlyphOrderDict def getGlyphOrder(self): try: @@ -543,7 +543,6 @@ class TTFont(object): for gid in lst] def getGlyphID(self, glyphName): - glyphOrder = self.getGlyphOrder() try: return self.getReverseGlyphMap()[glyphName] except KeyError: