Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def instance(self, typeid):
if typeid >= len(self._typeinfos):
raise CorruptedError(self)
typeinfo = self._typeinfos[typeid]
return getattr(self, typeinfo[0])(*typeinfo[1])
def instance(self, typeid):
if typeid >= len(self._typeinfos):
raise CorruptedError(self)
typeinfo = self._typeinfos[typeid]
return getattr(self, typeinfo[0])(*typeinfo[1])
def instance(self, typeid):
if typeid >= len(self._typeinfos):
raise CorruptedError(self)
typeinfo = self._typeinfos[typeid]
#print ' -- instance ', typeid, typeinfo
return getattr(self, typeinfo[0])(*typeinfo[1])
def instance(self, typeid):
if typeid >= len(self._typeinfos):
raise CorruptedError(self)
typeinfo = self._typeinfos[typeid]
return getattr(self, typeinfo[0])(*typeinfo[1])