From 447f12246d52c61aa8d452eb78ccd6813f7e2c9b 2013-06-29 19:41:01 From: MinRK Date: 2013-06-29 19:41:01 Subject: [PATCH] override null config with parent's config --- diff --git a/IPython/config/configurable.py b/IPython/config/configurable.py index f199d5d..f5b7283 100644 --- a/IPython/config/configurable.py +++ b/IPython/config/configurable.py @@ -83,7 +83,7 @@ class Configurable(HasTraits): parent = kwargs.pop('parent', None) if parent: # config is implied from parent - if 'config' not in kwargs: + if kwargs.get('config', None) is None: kwargs['config'] = parent.config self.parent = parent @@ -159,7 +159,6 @@ class Configurable(HasTraits): # load parent config as well, if we have one parent_section_names = [] if self.parent is None else self.parent.section_names() for parent in parent_section_names: - print parent, new._has_section(parent), new[parent] if not new._has_section(parent): continue self._load_config(new[parent], traits=traits, section_names=section_names)