Commit 9543875b authored by Jason R. Coombs's avatar Jason R. Coombs

Inline variable

parent 42fe2eb1
...@@ -85,12 +85,9 @@ def configuration_to_dict(handlers): ...@@ -85,12 +85,9 @@ def configuration_to_dict(handlers):
config_dict = defaultdict(dict) config_dict = defaultdict(dict)
for handler in handlers: for handler in handlers:
obj_alias = handler.section_prefix
for option in handler.set_options: for option in handler.set_options:
value = _get_option(handler.target_obj, option) value = _get_option(handler.target_obj, option)
config_dict[obj_alias][option] = value config_dict[handler.section_prefix][option] = value
return config_dict return config_dict
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment