##// END OF EJS Templates
BUG: Use hasattr '_resolve_classes' instead of isinstance(Instance)....
Scott Sanderson -
Show More
@@ -1388,7 +1388,7 class Container(Instance):
1388 def instance_init(self, obj):
1388 def instance_init(self, obj):
1389 if isinstance(self._trait, TraitType):
1389 if isinstance(self._trait, TraitType):
1390 self._trait.this_class = self.this_class
1390 self._trait.this_class = self.this_class
1391 if isinstance(self._trait, Instance):
1391 if hasattr(self._trait, '_resolve_classes'):
1392 self._trait._resolve_classes()
1392 self._trait._resolve_classes()
1393 super(Container, self).instance_init(obj)
1393 super(Container, self).instance_init(obj)
1394
1394
General Comments 0
You need to be logged in to leave comments. Login now