From 6e93172cf93d0a884ae864d878af6736a2c1ba50 Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Tue, 13 Jul 2021 17:17:16 +0200 Subject: [PATCH] fix comparison: filter() in py3 does not return list --- Utilities/RelMon/python/dqm_interfaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/RelMon/python/dqm_interfaces.py b/Utilities/RelMon/python/dqm_interfaces.py index 239ceec61d41c..083a38bf1ec3f 100755 --- a/Utilities/RelMon/python/dqm_interfaces.py +++ b/Utilities/RelMon/python/dqm_interfaces.py @@ -714,7 +714,7 @@ def walk(self): #print self.ls().keys() first_run_dir = "" try: - first_run_dir = filter(lambda k: "Run " in k, self.ls().keys())[0] + first_run_dir = list(filter(lambda k: "Run " in k, self.ls().keys()))[0] except: print("\nRundir not there: Is this a generic rootfile?\n") rundir=first_run_dir