wrapper.py (621B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\carbon\common\script\util\wrapper.py 2 from future.utils import raise_ 3 4 class Wrapper: 5 __guid__ = 'util.Wrapper' 6 __passbyvalue__ = 1 7 8 def __init__(self, *args, **keywords): 9 if args: 10 self.__dict__['dict'] = args[0] 11 else: 12 self.__dict__['dict'] = keywords 13 14 def __getattr__(self, attrName): 15 if attrName in self.dict: 16 return self.dict[attrName] 17 raise_(AttributeError, attrName) 18 19 def __setattr__(self, attrName, attrValue): 20 raise_(AttributeError, attrName)