From 8c6369ef93e81ad835918abddf9abb87f65babc7 Mon Sep 17 00:00:00 2001 From: Shin-Shan Date: Tue, 27 Feb 2024 12:29:26 +0100 Subject: [PATCH] update for python3 --- FWCore/PythonUtilities/python/LumiList.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/FWCore/PythonUtilities/python/LumiList.py b/FWCore/PythonUtilities/python/LumiList.py index 694a0c1a12533..bd9ef11ca9e98 100644 --- a/FWCore/PythonUtilities/python/LumiList.py +++ b/FWCore/PythonUtilities/python/LumiList.py @@ -181,8 +181,8 @@ def __and__(self, other): # Things in both def __or__(self, other): result = {} - aruns = self.compactList.keys() - bruns = other.compactList.keys() + aruns = list(self.compactList.keys()) + bruns = list(other.compactList.keys()) runs = set(aruns + bruns) for run in runs: overlap = sorted(self.compactList.get(run, []) + other.compactList.get(run, [])) @@ -245,7 +245,7 @@ def getLumis(self): Return the list of pairs representation """ theList = [] - runs = self.compactList.keys() + runs = list(self.compactList.keys()) runs = sorted(run, key=int) for run in runs: lumis = self.compactList[run] @@ -270,7 +270,7 @@ def _getLumiParts(self): """ parts = [] - runs = self.compactList.keys() + runs = list(self.compactList.keys()) runs = sorted(runs, key=int) for run in runs: lumis = self.compactList[run]