diff options
author | Panagiotis Karalis <panos.pkaralis@gmail.com> | 2019-08-07 10:46:52 +0300 |
---|---|---|
committer | Dan Xu <xudan16@huawei.com> | 2019-09-16 06:45:00 +0000 |
commit | 005d868d68dbb0e70b3f92a685ea269c4f646fd7 (patch) | |
tree | dcb1f0f64606b58f0c33e9dc96131fdbe4ed6398 /dovetail/utils/dovetail_config.py | |
parent | f0c44b1ae02ffbdb87da81dac7b6754c641d8c04 (diff) |
Move the proj to python3
The aim of this patch is to upgrade python version
of this project from python2 to python3.
Signed-off-by: Panagiotis Karalis <panos.pkaralis@gmail.com>
Change-Id: I3d3ef01176fda1b23a0542a24625be2f3368c40e
Diffstat (limited to 'dovetail/utils/dovetail_config.py')
-rw-r--r-- | dovetail/utils/dovetail_config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dovetail/utils/dovetail_config.py b/dovetail/utils/dovetail_config.py index 1d13c696..98be8e62 100644 --- a/dovetail/utils/dovetail_config.py +++ b/dovetail/utils/dovetail_config.py @@ -25,7 +25,7 @@ class DovetailConfig(object): path = os.path.join(conf_path, cls.dovetail_config['cli_file_name']) with open(path) as f: cmd_yml = yaml.safe_load(f) - cls.dovetail_config['cli'] = cmd_yml[cmd_yml.keys()[0]] + cls.dovetail_config['cli'] = cmd_yml[list(cmd_yml.keys())[0]] # update dovetail_config dict with the giving path. # if path is in the dovetail_config dict, its value will be replaced. |