Skip to content

Commit

Permalink
update for python3
Browse files Browse the repository at this point in the history
  • Loading branch information
syuvivida committed Feb 29, 2024
1 parent a3adc2d commit 8c6369e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions FWCore/PythonUtilities/python/LumiList.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, []))
Expand Down Expand Up @@ -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]
Expand All @@ -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]
Expand Down

0 comments on commit 8c6369e

Please sign in to comment.