From 0f368d25c581005999799786790cd2c59756cf4c Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Thu, 19 May 2005 21:43:43 +0000 Subject: [PATCH] allow DC structs to inherit from built-in types --- direct/src/distributed/ConnectionRepository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/distributed/ConnectionRepository.py b/direct/src/distributed/ConnectionRepository.py index 5ec805f55d..5f6e3cd756 100644 --- a/direct/src/distributed/ConnectionRepository.py +++ b/direct/src/distributed/ConnectionRepository.py @@ -161,7 +161,7 @@ class ConnectionRepository(DoInterestManager, CConnectionRepository): self.notify.error("Module %s does not define class %s." % (className, className)) classDef = getattr(classDef, className) - if type(classDef) != types.ClassType: + if type(classDef) not in (types.ClassType, types.TypeType): self.notify.error("Symbol %s is not a class name." % (className)) else: dclass.setClassDef(classDef)