diff --git a/DQM/Integration/python/config/unittestinputsource_cfi.py b/DQM/Integration/python/config/unittestinputsource_cfi.py index 034c62b91c2e7..e5facb9849fd7 100644 --- a/DQM/Integration/python/config/unittestinputsource_cfi.py +++ b/DQM/Integration/python/config/unittestinputsource_cfi.py @@ -6,7 +6,7 @@ # Parameters for runType import FWCore.ParameterSet.VarParsing as VarParsing import fnmatch -import subprocess +from future.moves import subprocess from .dqmPythonTypes import * # part of the runTheMatrix magic @@ -86,8 +86,8 @@ command = "edmFileUtil --catalog file:/cvmfs/cms-ib.cern.ch/SITECONF/local/PhEDEx/storage.xml?protocol=xrootd --events %s | tail -n +9 | head -n -5 | awk '{ print $3 }'" % read[0] print(command) events = subprocess.check_output(command, shell=True) - events = events.split('\n') - events = filter(lambda x: x != "", events) + events = events.split(b'\n') + events = filter(lambda x: x != b"", events) events = map(int, events) events = sorted(events) events = events[-options.eventsPerLumi:]