From d7f4d2bea9914893690a53ec96d05fe9e2e91827 2010-01-06 01:39:30 From: Fernando Perez Date: 2010-01-06 01:39:30 Subject: [PATCH] Equivalent but simpler/faster code in loader.py. --- diff --git a/IPython/config/loader.py b/IPython/config/loader.py index ae411b5..b3e47fd 100644 --- a/IPython/config/loader.py +++ b/IPython/config/loader.py @@ -334,8 +334,7 @@ class ArgParseConfigLoader(CommandLineConfigLoader): def _add_arguments(self): for argument in self.arguments: - if not argument[1].has_key('default'): - argument[1]['default'] = NoConfigDefault + argument[1].setdefault('default', NoConfigDefault) self.parser.add_argument(*argument[0],**argument[1]) def _parse_args(self, args=None):