From ac78d07e739b7b22ac15399321ac2bd0de9cff4a Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Wed, 5 Jun 2024 11:47:33 +0100 Subject: [PATCH] Remove margin setter asserts --- Lib/ufo2ft/util.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Lib/ufo2ft/util.py b/Lib/ufo2ft/util.py index cc9241c2..17d4eff1 100644 --- a/Lib/ufo2ft/util.py +++ b/Lib/ufo2ft/util.py @@ -174,11 +174,9 @@ def _setGlyphMargin(glyph, side, margin): assert side in {"left", "right", "top", "bottom"} if hasattr(glyph, f"set{side.title()}Margin"): # ufoLib2 getattr(glyph, f"set{side.title()}Margin")(margin) - assert getattr(glyph, f"get{side.title()}Margin")() == margin elif hasattr(glyph, f"{side}Margin"): # defcon descriptor = getattr(type(glyph), f"{side}Margin") descriptor.__set__(glyph, margin) - assert descriptor.__get__(glyph) == margin else: raise NotImplementedError(f"Unsupported Glyph class: {type(glyph)!r}")