def get_settings_from_module(module=None, default_settings=DEFAULT_CONFIG):
 context = copy.deepcopy(default_settings)
 if (module is not None):
  context.update(((k, v) for (k, v) in inspect.getmembers(module) if k.isupper()))
 return context

def get_settings_from_module ( module = None , default_settings = DEFAULT_CONFIG ) : context = copy . deepcopy ( default_settings ) if ( module is not None ) : context . update ( ( ( k , v ) for ( k , v ) in inspect . getmembers ( module ) if k . isupper ( ) ) ) return context
loads settings from a module .