|
@@ -98,11 +98,7 @@ class FFIExternalObject:
|
|
|
def setPointer(self):
|
|
def setPointer(self):
|
|
|
# See what type it really is and downcast to that type (if necessary)
|
|
# See what type it really is and downcast to that type (if necessary)
|
|
|
# Look up the TypeHandle in the dict. get() returns None if it is not there
|
|
# Look up the TypeHandle in the dict. get() returns None if it is not there
|
|
|
- try:
|
|
|
|
|
- index = self.getTypeIndex()
|
|
|
|
|
- except:
|
|
|
|
|
- # Remove this after everybody builds their panda
|
|
|
|
|
- index = self.getType().getIndex()
|
|
|
|
|
|
|
+ index = self.getTypeIndex()
|
|
|
exactWrapperClass = WrapperClassMap.get(index)
|
|
exactWrapperClass = WrapperClassMap.get(index)
|
|
|
# We do not need to downcast if we already have the same class
|
|
# We do not need to downcast if we already have the same class
|
|
|
if (exactWrapperClass and (exactWrapperClass != self.__class__)):
|
|
if (exactWrapperClass and (exactWrapperClass != self.__class__)):
|