1from fontParts.base.info import BaseInfo 2from babelfont import addUnderscoreProperty 3 4@addUnderscoreProperty("font") 5class Info(BaseInfo): 6 7 def __init__(self, **kwargs): 8 self._dict = {} 9 super(BaseInfo, self).__init__(self, **kwargs) 10 11 def _getAttr(self, attr): 12 if not attr in self._dict: 13 return None 14 return self._dict[attr] 15 16 def _setAttr(self, attr, value): 17 self._dict[attr] = value 18