##// END OF EJS Templates
check `parent is not None` rather than `not parent`...
MinRK -
Show More
@@ -81,7 +81,7 b' class Configurable(HasTraits):'
81 This ensures that instances will be configured properly.
81 This ensures that instances will be configured properly.
82 """
82 """
83 parent = kwargs.pop('parent', None)
83 parent = kwargs.pop('parent', None)
84 if parent:
84 if parent is not None:
85 # config is implied from parent
85 # config is implied from parent
86 if kwargs.get('config', None) is None:
86 if kwargs.get('config', None) is None:
87 kwargs['config'] = parent.config
87 kwargs['config'] = parent.config
General Comments 0
You need to be logged in to leave comments. Login now