Merge pull request #1489 from madig/cffLib-PrivateDict-refactor-getattr
[cffLib] Replace `PrivateDict.__getattr__` with property for `in_cff2`
This commit is contained in:
commit
bc9d6c6b36
@ -2432,11 +2432,9 @@ class PrivateDict(BaseDict):
|
||||
self.defaults = buildDefaults(privateDictOperators)
|
||||
self.order = buildOrder(privateDictOperators)
|
||||
|
||||
def __getattr__(self, name):
|
||||
if name == "in_cff2":
|
||||
@property
|
||||
def in_cff2(self):
|
||||
return self._isCFF2
|
||||
value = BaseDict.__getattr__(self, name)
|
||||
return value
|
||||
|
||||
def getNumRegions(self, vi=None): # called from misc/psCharStrings.py
|
||||
# if getNumRegions is being called, we can assume that VarStore exists.
|
||||
|
Loading…
x
Reference in New Issue
Block a user