From 5f5cbbd5fe6d2db01617eb39eee985d83390e625 Mon Sep 17 00:00:00 2001 From: Matthew Pitkin <matthew.pitkin@ligo.org> Date: Fri, 19 Feb 2021 17:11:15 +0000 Subject: [PATCH] utils.py: explicitly convect module keys to a list --- bilby/core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bilby/core/utils.py b/bilby/core/utils.py index 3b5902155..77d8b0c90 100644 --- a/bilby/core/utils.py +++ b/bilby/core/utils.py @@ -1250,7 +1250,7 @@ def get_function_path(func): def loaded_modules_dict(): - module_names = sys.modules.keys() + module_names = list(sys.modules.keys()) vdict = {} for key in module_names: if "." not in key: -- GitLab