reformat
This commit is contained in:
parent
af95134cd2
commit
78e8bb6c8c
1 changed files with 2 additions and 2 deletions
|
@ -100,8 +100,8 @@ def load_configuration(filename):
|
||||||
yaml = ruamel.yaml.YAML(typ='safe')
|
yaml = ruamel.yaml.YAML(typ='safe')
|
||||||
yaml.Constructor = Include_constructor_with_include_directory
|
yaml.Constructor = Include_constructor_with_include_directory
|
||||||
|
|
||||||
with open(filename) as f:
|
with open(filename) as file:
|
||||||
file_contents = f.read()
|
file_contents = file.read()
|
||||||
config = yaml.load(file_contents)
|
config = yaml.load(file_contents)
|
||||||
if config and 'constants' in config:
|
if config and 'constants' in config:
|
||||||
for key, value in config['constants'].items():
|
for key, value in config['constants'].items():
|
||||||
|
|
Loading…
Reference in a new issue