Fix Python 3.5 compatibility

This commit is contained in:
allegroai 2021-09-26 00:05:08 +03:00
parent e17246d8ea
commit e416ab526b

View File

@ -82,7 +82,7 @@ class Config(object):
relative_to=None, relative_to=None,
app=None, app=None,
is_server=False, is_server=False,
**_, **_
): ):
self._app = app self._app = app
self._verbose = verbose self._verbose = verbose
@ -214,7 +214,7 @@ class Config(object):
.lower() .lower()
) )
result = ConfigTree.merge_configs( result = ConfigTree.merge_configs(
result, ConfigFactory.parse_string(f"{path}: {os.environ[key]}") result, ConfigFactory.parse_string("{}: {}".format(path, os.environ[key]))
) )
return result return result