From 8f2ca826d4d373a6cb489bf6c1aa8f89f94e1e5d Mon Sep 17 00:00:00 2001 From: mleszczy <michal.leszczynski@cern.ch> Date: Thu, 13 Feb 2020 13:29:05 +0000 Subject: [PATCH] Fixed faulty printComps method --- Control/AthenaConfiguration/share/confTool.py | 22 +++---------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/Control/AthenaConfiguration/share/confTool.py b/Control/AthenaConfiguration/share/confTool.py index 46138963d27..9b5b97204d9 100755 --- a/Control/AthenaConfiguration/share/confTool.py +++ b/Control/AthenaConfiguration/share/confTool.py @@ -156,26 +156,10 @@ def __print(conf): def __printComps(conf): - - def __printDict(d): - for key, value in dict(d).items(): - if key in "Histograms": - continue - - if isinstance(value, dict): - __printDict(value) - elif isinstance(value, str) and "/" in value: - if "[" not in value: # not an array - if value.count("/") == 1: - print(value) - else: # handle arrays - actualType = ast.literal_eval(value) - if isinstance(actualType, list): - for el in actualType: - if el.count("/") == 1: # ==1 eliminates COOL folders - print(el) for item in conf: - __printDict(item) + if isinstance(item, dict): + for compName in item.keys(): + print(compName) def __compareConfig(configRef, configChk, args): -- GitLab