[ttGlyph] Adjust contextmanager pattern

This commit is contained in:
Behdad Esfahbod 2023-02-02 10:52:31 -07:00
parent e07fafc324
commit f3f50393a8

View File

@ -45,8 +45,9 @@ class _TTGlyphSet(Mapping):
self.location = self.location.copy()
self.location.update(location)
try:
yield None
finally:
self.location = self.locationStack.pop()
def __contains__(self, glyphName):