From c26340cdb15dd9f91841ee6996c93b3f67f8256e Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Fri, 22 Nov 2024 18:15:56 +0100 Subject: [PATCH] [ALCA-DB] py2/3 compatibility:drop use of __future__ --- Alignment/APEEstimation/test/SkimProducer/skimProducer_cfg.py | 1 - Alignment/APEEstimation/test/SkimProducer/startSkim.py | 1 - Alignment/APEEstimation/test/autoSubmitter/autoSubmitter.py | 1 - Alignment/APEEstimation/test/autoSubmitter/helpers.py | 1 - .../APEEstimation/test/cfgTemplate/apeEstimatorSummary_cfg.py | 1 - Alignment/APEEstimation/test/cfgTemplate/apeEstimator_cfg.py | 1 - Alignment/APEEstimation/test/cfgTemplate/apeLocalSetting_cfg.py | 1 - .../test/createTrackerAlignmentErrorExtendedRcd_cfg.py | 1 - Alignment/APEEstimation/test/plottingTools/trendPlotter.py | 1 - Alignment/APEEstimation/test/trackerTreeGenerator_cfg.py | 1 - Alignment/CommonAlignment/python/tools/dataset.py | 2 -- .../CommonAlignment/python/tools/trackselectionRefitting.py | 1 - Alignment/CommonAlignment/python/tools/utilities.py | 1 - Alignment/CommonAlignment/scripts/magneticFieldFilterJSON.py | 1 - Alignment/CommonAlignment/scripts/tkal_create_file_lists.py | 1 - .../scripts/AlCaHLTBitMon_ParallelJobs.py | 1 - .../scripts/AlCaHLTBitMon_QueryRunRegistry.py | 1 - .../python/OptionParser/HipPyOptionParser.py | 1 - Alignment/HIPAlignmentAlgorithm/scripts/batchHippy.py | 1 - .../HIPAlignmentAlgorithm/scripts/hippyaddtobaddatafiles.py | 1 - Alignment/HIPAlignmentAlgorithm/test/runTwoBodyDecayTest.py | 1 - .../python/alignmentsetup/GeneralSetup.py | 1 - .../python/alignmentsetup/MilleSetup.py | 1 - .../MillePedeAlignmentAlgorithm/python/mpslib/Mpslibclass.py | 1 - Alignment/MillePedeAlignmentAlgorithm/python/mpslib/tools.py | 1 - .../MillePedeAlignmentAlgorithm/python/mpsvalidate/classes.py | 1 - Alignment/MillePedeAlignmentAlgorithm/scripts/mps_alisetup.py | 1 - Alignment/MillePedeAlignmentAlgorithm/scripts/mps_check.py | 1 - Alignment/MillePedeAlignmentAlgorithm/scripts/mps_fire.py | 1 - Alignment/MillePedeAlignmentAlgorithm/scripts/mps_list_evts.py | 1 - Alignment/MillePedeAlignmentAlgorithm/scripts/mps_merge.py | 1 - .../MillePedeAlignmentAlgorithm/scripts/mps_monitormerge.py | 1 - .../scripts/mps_parse_pedechi2hist.py | 1 - Alignment/MillePedeAlignmentAlgorithm/scripts/mps_setup.py | 1 - .../MillePedeAlignmentAlgorithm/scripts/mps_setup_new_align.py | 1 - Alignment/MillePedeAlignmentAlgorithm/scripts/mps_splice.py | 1 - Alignment/MillePedeAlignmentAlgorithm/scripts/mps_update.py | 1 - Alignment/MillePedeAlignmentAlgorithm/test/trackerTree_cfg.py | 1 - Alignment/MuonAlignment/python/geometryCSVtoXML.py | 1 - Alignment/MuonAlignment/python/geometryDiff.py | 1 - Alignment/MuonAlignment/python/geometryDiffVisualization.py | 1 - Alignment/MuonAlignment/python/geometryXMLtoCSV.py | 1 - Alignment/MuonAlignment/python/makeMuonMisalignmentScenario.py | 1 - Alignment/MuonAlignment/test/muonGeometryDBConverter_cfg.py | 1 - Alignment/MuonAlignmentAlgorithms/python/gather_cfg.py | 1 - Alignment/MuonAlignmentAlgorithms/scripts/alignCSCRings.py | 1 - .../MuonAlignmentAlgorithms/scripts/alignmentValidation.py | 1 - .../MuonAlignmentAlgorithms/scripts/applyRadialCorrections.py | 1 - Alignment/MuonAlignmentAlgorithms/scripts/convertSQLiteXML.py | 1 - Alignment/MuonAlignmentAlgorithms/scripts/corrVsCorr.py | 1 - Alignment/MuonAlignmentAlgorithms/scripts/createBeamHaloJobs.py | 1 - Alignment/MuonAlignmentAlgorithms/scripts/createCSCRingsJobs.py | 1 - Alignment/MuonAlignmentAlgorithms/scripts/createJobs.py | 1 - Alignment/MuonAlignmentAlgorithms/scripts/createTree.py | 1 - Alignment/MuonAlignmentAlgorithms/scripts/diffTwoXMLs.py | 1 - Alignment/MuonAlignmentAlgorithms/scripts/findQualityFiles.py | 1 - .../MuonAlignmentAlgorithms/scripts/geometryDiffVisualizer.py | 1 - Alignment/MuonAlignmentAlgorithms/scripts/groupFilesInBlocks.py | 1 - .../MuonAlignmentAlgorithms/scripts/motionPolicyChamber.py | 1 - Alignment/MuonAlignmentAlgorithms/scripts/plotscripts.py | 1 - .../MuonAlignmentAlgorithms/scripts/relativeConstraints.py | 1 - Alignment/MuonAlignmentAlgorithms/scripts/reportVsReport.py | 1 - .../OfflineValidation/python/TkAlAllInOneTool/DiMuonV_cfg.py | 1 - .../python/TkAlAllInOneTool/betterConfigParser.py | 2 -- Alignment/OfflineValidation/python/overlapValidationPlot.py | 2 -- .../OfflineValidation/scripts/produceOfflineValidationTex.py | 1 - Alignment/OfflineValidation/scripts/submitPVResolutionJobs.py | 1 - Alignment/OfflineValidation/scripts/submitPVValidationJobs.py | 1 - Alignment/OfflineValidation/scripts/validateAlignments.py | 1 - .../OfflineValidation/test/DiElectronVertexValidation_cfg.py | 1 - Alignment/OfflineValidation/test/DiMuonVertexValidation_cfg.py | 1 - Alignment/OfflineValidation/test/submitAllJobs.py | 1 - Alignment/OfflineValidation/test/testG4Refitter_cfg.py | 1 - Alignment/TrackerAlignment/scripts/query.py | 1 - .../createRandomlyMisalignedGeometry_Phase2_cfg.py | 1 - .../test/Misalignments/createRandomlyMisalignedGeometry_cfg.py | 1 - .../test/createTrackerAlignmentRcds_Phase2_cfg.py | 1 - .../TrackerAlignment/test/createTrackerAlignmentRcds_cfg.py | 1 - Alignment/TrackerAlignment/test/mcMisalignmentScaler_cfg.py | 1 - Alignment/TrackerAlignment/test/trackerTreeGenerator_cfg.py | 1 - .../CaloMiscalibTools/test/make_ecal_miscaplibration.py | 1 - CalibCalorimetry/CaloMiscalibTools/test/make_miscalibration.py | 1 - CalibMuon/DTCalibration/python/PlottingTools/plotResiduals.py | 2 -- .../DTCalibration/python/PlottingTools/plotResidualsCosmics.py | 2 -- .../DTCalibration/python/PlottingTools/plotResidualsPerLayer.py | 2 -- .../DTCalibration/python/PlottingTools/plotT0FromHistos.py | 2 -- .../DTCalibration/python/PlottingTools/plotTTrigFromHistos.py | 2 -- .../DTCalibration/python/PlottingTools/plotVDriftFromHistos.py | 2 -- CalibMuon/DTCalibration/python/Workflow/CrabHelper.py | 2 -- .../DTCalibration/python/Workflow/Crabtools/crabFunctions.py | 1 - CalibMuon/DTCalibration/python/Workflow/DTCalibrationWorker.py | 2 -- CalibMuon/DTCalibration/python/Workflow/DTTtrigWorkflow.py | 1 - CalibMuon/DTCalibration/python/Workflow/DTVdriftWorkflow.py | 1 - CalibMuon/DTCalibration/python/Workflow/DTWorkflow.py | 2 -- CalibMuon/DTCalibration/python/Workflow/tools.py | 1 - CalibMuon/DTCalibration/scripts/allPlotsResiduals.py | 1 - CalibMuon/DTCalibration/scripts/mergeVDriftHistosByStation.py | 1 - CalibMuon/DTCalibration/test/DumpDBToFile_cfg.py | 1 - CalibMuon/DTCalibration/test/DumpFileToDB_cfg.py | 1 - .../test/testSiPixelFakeLorentzAngleESSource_cfg.py | 1 - .../test/7TeVData/automatic_RunOnCalibTree.py | 1 - CalibTracker/SiStripChannelGain/test/7TeVData/dataCert.py | 1 - CalibTracker/SiStripChannelGain/test/7TeVData/submitJob.py | 1 - .../test/CodeExample/computeGain_cfg_OnBatch.py | 1 - .../test/CodeExample/produceCalibrationTree_cfg_OnBatch.py | 1 - CalibTracker/SiStripChannelGain/test/Cosmic_B38/MergeOnBatch.py | 1 - .../SiStripChannelGain/test/Cosmic_B38/launchOnBatch.py | 1 - .../SiStripChannelGain/test/Cosmic_B38/onFarm_MergeJob_cfg.py | 1 - .../SiStripChannelGain/test/Cosmic_B38/onFarm_MultiJob_cfg.py | 1 - CalibTracker/SiStripChannelGain/test/PCL/Launch.py | 1 - .../SiStripChannelGain/test/testSSTGain_PCL_FromRECO_cfg.py | 1 - CalibTracker/SiStripCommon/python/das.py | 1 - .../SiStripCommon/test/MakeCalibrationTrees/SubmitJobs.py | 1 - .../SiStripCommon/test/MakeCalibrationTrees/cleanFolders.py | 1 - .../produceCalibrationTree_CosmicsLABP_cfg.py | 1 - .../MakeCalibrationTrees/produceCalibrationTree_template_cfg.py | 1 - .../test/MakeCalibrationTrees/submitCalibTree/Config.py | 1 - .../test/MakeCalibrationTrees/submitCalibTree/launchJobs.py | 2 -- .../test/MakeCalibrationTrees/submitCalibTree/runJob.py | 2 -- CalibTracker/SiStripCommon/test/testCalibTree_nano.py | 1 - CalibTracker/SiStripCommon/test/testCalibTree_nano_G2.py | 1 - .../SiStripCommon/test/testProduceCalibrationTree_cfg.py | 1 - CalibTracker/SiStripDCS/test/ChangeToHVmap.py | 1 - CalibTracker/SiStripDCS/test/CheckAllIOVs.py | 1 - CalibTracker/SiStripDCS/test/CheckLogs.py | 1 - CalibTracker/SiStripDCS/test/MakeList.py | 1 - CalibTracker/SiStripDCS/test/MakeTkMaps.py | 1 - CalibTracker/SiStripDCS/test/ManualO2OForRestart.py | 1 - CalibTracker/SiStripDCS/test/ParseManualO2Olog.py | 1 - CalibTracker/SiStripDCS/test/TimestampToDate.py | 1 - CalibTracker/SiStripDCS/test/convertTime.py | 1 - CalibTracker/SiStripDCS/test/templateCheckAllIOVs_cfg.py | 1 - CalibTracker/SiStripESProducers/test/python/CheckAllIOVs.py | 1 - CalibTracker/SiStripESProducers/test/python/UploadAll.py | 1 - .../SiStripESProducers/test/python/templateCheckAllIOVs_cfg.py | 1 - Calibration/EcalAlCaRecoProducers/test/alcaSkimming.py | 1 - .../test/convertSiStripRootDQMFileToEDM_cfg.py | 1 - Calibration/TkAlCaRecoProducers/test/parseFwkJobReport.py | 1 - Calibration/TkAlCaRecoProducers/test/testPCLAlCaHarvesting.py | 1 - Calibration/Tools/scripts/alcaDQMUpload.py | 1 - CondCore/CondDB/test/condTestRegression.py | 1 - CondCore/DBCommon/python/CondDBCommon_cfi.py | 1 - CondCore/DBCommon/python/CondDBSetup_cfi.py | 1 - CondCore/ESSources/python/GlobalTag.py | 1 - CondCore/ESSources/test/python/load_from_globaltag_cfg.py | 1 - CondCore/ESSources/test/python/load_record_empty_source_cfg.py | 1 - .../ESSources/test/python/loadall_from_gt_empty_source_cfg.py | 1 - .../test/python/loadall_from_one_record_empty_source_cfg.py | 1 - .../python/loadall_from_one_record_empty_source_time_cfg.py | 1 - CondCore/ESSources/test/python/read_beamspot_cfg.py | 1 - CondCore/ESSources/test/python/write_beamspot_cfg.py | 1 - CondCore/EcalPlugins/test/inspect.py | 1 - CondCore/PopCon/test/fetchCronLogTail.py | 1 - CondCore/PopCon/test/run_popcon2dropbox_DT.py | 1 - CondCore/PopCon/test/run_popcon2dropbox_RunInfo.py | 1 - CondCore/RPCPlugins/test/inspectRPCObImon.py | 1 - CondCore/RunInfoPlugins/test/inspect.py | 1 - CondCore/RunInfoPlugins/test/inspectL1Scaler.py | 1 - CondCore/RunInfoPlugins/test/inspectRunInfo.py | 1 - CondCore/RunInfoPlugins/test/inspectRunInfo_219.py | 1 - CondCore/RunInfoPlugins/test/inspectRunInfo_3XX.py | 1 - CondCore/RunInfoPlugins/test/inspectRunSummary.py | 1 - CondCore/RunInfoPlugins/test/inspectRunSummary_219.py | 1 - CondCore/RunInfoPlugins/test/plot2JsonTimeSeries.py | 1 - CondCore/SiStripPlugins/test/findPeakRuns.py | 1 - CondCore/SiStripPlugins/test/plotJson.py | 1 - CondCore/Utilities/python/CondDBFW/tests/__main__.py | 1 - CondCore/Utilities/python/CondDBFW/tests/data_formats_tests.py | 1 - CondCore/Utilities/python/CondDBFW/tests/querying_tests.py | 1 - CondCore/Utilities/python/cond2xml.py | 1 - CondCore/Utilities/python/conddb_migrate.py | 1 - CondCore/Utilities/python/o2olib.py | 1 - CondCore/Utilities/python/popcon2dropbox.py | 1 - CondCore/Utilities/python/popcon2dropbox_job_conf.py | 1 - CondCore/Utilities/python/tier0.py | 1 - CondCore/Utilities/scripts/conddb | 1 - CondCore/Utilities/scripts/conddbCopyTest.py | 1 - CondCore/Utilities/scripts/conddb_version_mgr.py | 1 - CondCore/Utilities/scripts/conditionUploadTest.py | 1 - CondCore/Utilities/scripts/getPayloadData.py | 1 - CondCore/Utilities/scripts/popconRun | 1 - CondCore/Utilities/scripts/uploadConditions.py | 1 - CondCore/Utilities/test/CondDBFW/testing_classes.py | 1 - CondCore/Utilities/test/iovInspector_test.py | 1 - CondCore/Utilities/test/listTags.py | 1 - CondFormats/Common/test/parse_output.py | 1 - CondFormats/MFObjects/test/writeAllMagFieldConfigDB.py | 1 - .../Serialization/python/condformats_serialization_generate.py | 1 - CondFormats/SiStripObjects/test/SiStripBadChannelInspector.py | 1 - CondFormats/SiStripObjects/test/SiStripConfObjectInspector.py | 1 - CondFormats/SiStripObjects/test/SiStripLatencyInspector.py | 1 - CondTools/BTau/python/bTagCalibrationDbCreation.py | 1 - CondTools/BTau/python/checkBTagCalibrationConsistency.py | 2 -- CondTools/BTau/python/combineBTagCalibrationData.py | 2 -- CondTools/BTau/python/dataLoader.py | 1 - CondTools/BTau/python/generateFlavCfromFlavB.py | 2 -- CondTools/BTau/python/generateStandaloneCode.py | 1 - CondTools/CTPPS/test/largeXMLmanipulations/script_tables.py | 1 - CondTools/CTPPS/test/retrieve_sqlite_PixGainCalib_cfg.py | 1 - CondTools/CTPPS/test/run_rp_realalignment_table.py | 1 - CondTools/CTPPS/test/testReadDB_PixGainCalib_cfg.py | 1 - CondTools/CTPPS/test/write-ctpps-pixel-gainscalibrations_cfg.py | 1 - CondTools/CTPPS/test/write-ctpps-rprealalignment_table_cfg.py | 1 - CondTools/CTPPS/test/write-ctpps-rprealalignment_table_test.py | 1 - CondTools/Ecal/python/EcalCondDB.py | 2 -- CondTools/Ecal/python/EcalCondTools.py | 2 -- CondTools/Ecal/python/SplitLinear.py | 1 - CondTools/Ecal/python/SplitSqlite.py | 1 - CondTools/Ecal/scripts/loadConditions.py | 1 - CondTools/Ecal/test/tools/inspectEcal.py | 1 - CondTools/Hcal/test/runDumpHcalCond_cfg.py | 1 - CondTools/SiPixel/test/SiPixelDynamicInefficiencyDB_cfg.py | 1 - CondTools/SiPixel/test/SiPixelDynamicInefficiencyReader_cfg.py | 1 - CondTools/SiPixel/test/SiPixelGainCalibScaler_cfg.py | 1 - CondTools/SiPixel/test/SiPixelInclusiveBuilder_cfg.py | 1 - CondTools/SiPixel/test/SiPixelLorentzAngleDB_cfg.py | 1 - CondTools/SiPixel/test/SiPixelLorentzAngleReader_cfg.py | 1 - CondTools/SiPixel/test/SiPixelQualityPlotter_cfg.py | 1 - CondTools/SiPixel/test/SiPixelVCalDB_cfg.py | 1 - CondTools/SiPixel/test/SiPixelVCalReader_cfg.py | 1 - CondTools/SiPixel/test/runPixelPopConCalib.py | 1 - CondTools/SiStrip/test/CheckDetVOff.py | 1 - .../SiStrip/test/SiStripChannelGainFromDBMiscalibrator_cfg.py | 1 - CondTools/SiStrip/test/SiStripNoiseFromDBMiscalibrator_cfg.py | 1 - CondTools/SiStrip/test/SiStripNoisesAndBadCompsChecker_cfg.py | 1 - RecoLuminosity/LumiDB/python/csvLumibyLSParser.py | 1 - RecoLuminosity/LumiDB/python/pileupParser.py | 1 - RecoLuminosity/LumiDB/python/selectionParser.py | 1 - RecoLuminosity/LumiDB/scripts/makePileupJSON.py | 1 - RecoLuminosity/LumiDB/scripts/pileupCalc.py | 1 - RecoLuminosity/LumiDB/scripts/pileupReCalc_HLTpaths.py | 1 - RecoLuminosity/LumiDB/scripts/pileupReCalc_Lumis.py | 1 - 232 files changed, 251 deletions(-) diff --git a/Alignment/APEEstimation/test/SkimProducer/skimProducer_cfg.py b/Alignment/APEEstimation/test/SkimProducer/skimProducer_cfg.py index b04d66eb6d921..3ec7546c051f7 100644 --- a/Alignment/APEEstimation/test/SkimProducer/skimProducer_cfg.py +++ b/Alignment/APEEstimation/test/SkimProducer/skimProducer_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os import FWCore.ParameterSet.Config as cms diff --git a/Alignment/APEEstimation/test/SkimProducer/startSkim.py b/Alignment/APEEstimation/test/SkimProducer/startSkim.py index e73b035f71dcb..2508a31064fde 100644 --- a/Alignment/APEEstimation/test/SkimProducer/startSkim.py +++ b/Alignment/APEEstimation/test/SkimProducer/startSkim.py @@ -1,4 +1,3 @@ -from __future__ import print_function import sys sys.path.append("../SkimProducer") # for switching to CAF queue (condor submit) diff --git a/Alignment/APEEstimation/test/autoSubmitter/autoSubmitter.py b/Alignment/APEEstimation/test/autoSubmitter/autoSubmitter.py index a182f2922c9cf..5849b9b5f1d7f 100644 --- a/Alignment/APEEstimation/test/autoSubmitter/autoSubmitter.py +++ b/Alignment/APEEstimation/test/autoSubmitter/autoSubmitter.py @@ -1,4 +1,3 @@ -from __future__ import print_function import configparser as ConfigParser import argparse import shelve diff --git a/Alignment/APEEstimation/test/autoSubmitter/helpers.py b/Alignment/APEEstimation/test/autoSubmitter/helpers.py index bb78557ff2b73..c7720a1006075 100644 --- a/Alignment/APEEstimation/test/autoSubmitter/helpers.py +++ b/Alignment/APEEstimation/test/autoSubmitter/helpers.py @@ -1,4 +1,3 @@ -from __future__ import print_function import re import os import subprocess diff --git a/Alignment/APEEstimation/test/cfgTemplate/apeEstimatorSummary_cfg.py b/Alignment/APEEstimation/test/cfgTemplate/apeEstimatorSummary_cfg.py index d95da5e1da537..b225736b0f140 100644 --- a/Alignment/APEEstimation/test/cfgTemplate/apeEstimatorSummary_cfg.py +++ b/Alignment/APEEstimation/test/cfgTemplate/apeEstimatorSummary_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os import FWCore.ParameterSet.Config as cms diff --git a/Alignment/APEEstimation/test/cfgTemplate/apeEstimator_cfg.py b/Alignment/APEEstimation/test/cfgTemplate/apeEstimator_cfg.py index 1acef15fee026..573fb7ea9d4b3 100644 --- a/Alignment/APEEstimation/test/cfgTemplate/apeEstimator_cfg.py +++ b/Alignment/APEEstimation/test/cfgTemplate/apeEstimator_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os import FWCore.ParameterSet.Config as cms diff --git a/Alignment/APEEstimation/test/cfgTemplate/apeLocalSetting_cfg.py b/Alignment/APEEstimation/test/cfgTemplate/apeLocalSetting_cfg.py index 5de26569be289..3376710d32ab6 100644 --- a/Alignment/APEEstimation/test/cfgTemplate/apeLocalSetting_cfg.py +++ b/Alignment/APEEstimation/test/cfgTemplate/apeLocalSetting_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os import FWCore.ParameterSet.Config as cms diff --git a/Alignment/APEEstimation/test/createTrackerAlignmentErrorExtendedRcd_cfg.py b/Alignment/APEEstimation/test/createTrackerAlignmentErrorExtendedRcd_cfg.py index 141f5a1800e13..2f5da77ff8a04 100644 --- a/Alignment/APEEstimation/test/createTrackerAlignmentErrorExtendedRcd_cfg.py +++ b/Alignment/APEEstimation/test/createTrackerAlignmentErrorExtendedRcd_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function ######################################################################################## ### ### Read and write APEs to and from database and ASCII files diff --git a/Alignment/APEEstimation/test/plottingTools/trendPlotter.py b/Alignment/APEEstimation/test/plottingTools/trendPlotter.py index 8ff595aac0c95..26961fcca973c 100644 --- a/Alignment/APEEstimation/test/plottingTools/trendPlotter.py +++ b/Alignment/APEEstimation/test/plottingTools/trendPlotter.py @@ -1,4 +1,3 @@ -from __future__ import print_function import ROOT ROOT.gROOT.SetBatch(True) from setTDRStyle import setTDRStyle diff --git a/Alignment/APEEstimation/test/trackerTreeGenerator_cfg.py b/Alignment/APEEstimation/test/trackerTreeGenerator_cfg.py index 4727e156f1327..6376fb8d23029 100644 --- a/Alignment/APEEstimation/test/trackerTreeGenerator_cfg.py +++ b/Alignment/APEEstimation/test/trackerTreeGenerator_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms import os diff --git a/Alignment/CommonAlignment/python/tools/dataset.py b/Alignment/CommonAlignment/python/tools/dataset.py index 0d0f812b07b44..37a963b26528c 100644 --- a/Alignment/CommonAlignment/python/tools/dataset.py +++ b/Alignment/CommonAlignment/python/tools/dataset.py @@ -1,5 +1,3 @@ -from __future__ import print_function -from __future__ import absolute_import import abc import csv diff --git a/Alignment/CommonAlignment/python/tools/trackselectionRefitting.py b/Alignment/CommonAlignment/python/tools/trackselectionRefitting.py index 948f56d12aee0..c296a520b0cb3 100644 --- a/Alignment/CommonAlignment/python/tools/trackselectionRefitting.py +++ b/Alignment/CommonAlignment/python/tools/trackselectionRefitting.py @@ -1,4 +1,3 @@ -from __future__ import print_function import sys import FWCore.ParameterSet.Config as cms diff --git a/Alignment/CommonAlignment/python/tools/utilities.py b/Alignment/CommonAlignment/python/tools/utilities.py index 2b38d0d34d3fa..0914b884cad7e 100644 --- a/Alignment/CommonAlignment/python/tools/utilities.py +++ b/Alignment/CommonAlignment/python/tools/utilities.py @@ -1,4 +1,3 @@ -from __future__ import print_function def cache(function): cache = {} diff --git a/Alignment/CommonAlignment/scripts/magneticFieldFilterJSON.py b/Alignment/CommonAlignment/scripts/magneticFieldFilterJSON.py index b0700add498eb..b1e636ea50279 100755 --- a/Alignment/CommonAlignment/scripts/magneticFieldFilterJSON.py +++ b/Alignment/CommonAlignment/scripts/magneticFieldFilterJSON.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import os import sys diff --git a/Alignment/CommonAlignment/scripts/tkal_create_file_lists.py b/Alignment/CommonAlignment/scripts/tkal_create_file_lists.py index ab70a4cd90d56..0c68a7bd26120 100755 --- a/Alignment/CommonAlignment/scripts/tkal_create_file_lists.py +++ b/Alignment/CommonAlignment/scripts/tkal_create_file_lists.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function from builtins import range import os diff --git a/Alignment/CommonAlignmentProducer/scripts/AlCaHLTBitMon_ParallelJobs.py b/Alignment/CommonAlignmentProducer/scripts/AlCaHLTBitMon_ParallelJobs.py index fb8aad6191674..9a40a62733fb6 100755 --- a/Alignment/CommonAlignmentProducer/scripts/AlCaHLTBitMon_ParallelJobs.py +++ b/Alignment/CommonAlignmentProducer/scripts/AlCaHLTBitMon_ParallelJobs.py @@ -7,7 +7,6 @@ # by: $Author: mussgill $ #----------------------------------------------------- -from __future__ import print_function import re import json import os diff --git a/Alignment/CommonAlignmentProducer/scripts/AlCaHLTBitMon_QueryRunRegistry.py b/Alignment/CommonAlignmentProducer/scripts/AlCaHLTBitMon_QueryRunRegistry.py index 51f9ef208b68a..1f37ddee7a123 100755 --- a/Alignment/CommonAlignmentProducer/scripts/AlCaHLTBitMon_QueryRunRegistry.py +++ b/Alignment/CommonAlignmentProducer/scripts/AlCaHLTBitMon_QueryRunRegistry.py @@ -7,7 +7,6 @@ # by: $Author: taroni $ #----------------------------------------------------- -from __future__ import print_function from xml.dom import minidom import re import json diff --git a/Alignment/HIPAlignmentAlgorithm/python/OptionParser/HipPyOptionParser.py b/Alignment/HIPAlignmentAlgorithm/python/OptionParser/HipPyOptionParser.py index d2d0dc463ce62..1c456db10687c 100644 --- a/Alignment/HIPAlignmentAlgorithm/python/OptionParser/HipPyOptionParser.py +++ b/Alignment/HIPAlignmentAlgorithm/python/OptionParser/HipPyOptionParser.py @@ -1,4 +1,3 @@ -from __future__ import print_function from array import array from copy import copy from copy import deepcopy diff --git a/Alignment/HIPAlignmentAlgorithm/scripts/batchHippy.py b/Alignment/HIPAlignmentAlgorithm/scripts/batchHippy.py index 6334012a1a18d..54aacab003b42 100755 --- a/Alignment/HIPAlignmentAlgorithm/scripts/batchHippy.py +++ b/Alignment/HIPAlignmentAlgorithm/scripts/batchHippy.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import sys import imp import copy diff --git a/Alignment/HIPAlignmentAlgorithm/scripts/hippyaddtobaddatafiles.py b/Alignment/HIPAlignmentAlgorithm/scripts/hippyaddtobaddatafiles.py index 5ea7ab7094ec1..166a5e3043aee 100755 --- a/Alignment/HIPAlignmentAlgorithm/scripts/hippyaddtobaddatafiles.py +++ b/Alignment/HIPAlignmentAlgorithm/scripts/hippyaddtobaddatafiles.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import argparse, contextlib, os, re, shutil, subprocess, tempfile, time diff --git a/Alignment/HIPAlignmentAlgorithm/test/runTwoBodyDecayTest.py b/Alignment/HIPAlignmentAlgorithm/test/runTwoBodyDecayTest.py index 18002c192d6ff..fc8d53b2ffc55 100644 --- a/Alignment/HIPAlignmentAlgorithm/test/runTwoBodyDecayTest.py +++ b/Alignment/HIPAlignmentAlgorithm/test/runTwoBodyDecayTest.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms process = cms.Process("TBDtest") diff --git a/Alignment/MillePedeAlignmentAlgorithm/python/alignmentsetup/GeneralSetup.py b/Alignment/MillePedeAlignmentAlgorithm/python/alignmentsetup/GeneralSetup.py index 1c7e4f40d9850..d11abb189d125 100644 --- a/Alignment/MillePedeAlignmentAlgorithm/python/alignmentsetup/GeneralSetup.py +++ b/Alignment/MillePedeAlignmentAlgorithm/python/alignmentsetup/GeneralSetup.py @@ -1,4 +1,3 @@ -from __future__ import print_function import re def setup(process, global_tag, zero_tesla=False, geometry=""): diff --git a/Alignment/MillePedeAlignmentAlgorithm/python/alignmentsetup/MilleSetup.py b/Alignment/MillePedeAlignmentAlgorithm/python/alignmentsetup/MilleSetup.py index cdde258756c69..7b9261d34b26b 100644 --- a/Alignment/MillePedeAlignmentAlgorithm/python/alignmentsetup/MilleSetup.py +++ b/Alignment/MillePedeAlignmentAlgorithm/python/alignmentsetup/MilleSetup.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import import FWCore.ParameterSet.Config as cms diff --git a/Alignment/MillePedeAlignmentAlgorithm/python/mpslib/Mpslibclass.py b/Alignment/MillePedeAlignmentAlgorithm/python/mpslib/Mpslibclass.py index a2dc696879322..171e7babdd056 100755 --- a/Alignment/MillePedeAlignmentAlgorithm/python/mpslib/Mpslibclass.py +++ b/Alignment/MillePedeAlignmentAlgorithm/python/mpslib/Mpslibclass.py @@ -1,4 +1,3 @@ -from __future__ import print_function # This Jobdatabas-Class interacts with the mps.db file. # It's member-variables are often called in the mps_... scripts. # diff --git a/Alignment/MillePedeAlignmentAlgorithm/python/mpslib/tools.py b/Alignment/MillePedeAlignmentAlgorithm/python/mpslib/tools.py index 8f11f81db1ccd..0cb2c5eade413 100644 --- a/Alignment/MillePedeAlignmentAlgorithm/python/mpslib/tools.py +++ b/Alignment/MillePedeAlignmentAlgorithm/python/mpslib/tools.py @@ -1,4 +1,3 @@ -from __future__ import print_function from builtins import range import os import re diff --git a/Alignment/MillePedeAlignmentAlgorithm/python/mpsvalidate/classes.py b/Alignment/MillePedeAlignmentAlgorithm/python/mpsvalidate/classes.py index b47b557f31d81..09306a6d5bede 100644 --- a/Alignment/MillePedeAlignmentAlgorithm/python/mpsvalidate/classes.py +++ b/Alignment/MillePedeAlignmentAlgorithm/python/mpsvalidate/classes.py @@ -1,4 +1,3 @@ -from __future__ import print_function ########################################################################## # Classes which are needed by the mps_validate.py file. ## diff --git a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_alisetup.py b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_alisetup.py index 1d0cb8339e874..3f7aae9016c49 100755 --- a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_alisetup.py +++ b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_alisetup.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import os import re import sys diff --git a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_check.py b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_check.py index 05efad22085dc..71445577ee8f4 100755 --- a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_check.py +++ b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_check.py @@ -11,7 +11,6 @@ # # It also retirieves number of events from alignment.log and cputime from STDOUT -from __future__ import print_function from builtins import range import Alignment.MillePedeAlignmentAlgorithm.mpslib.Mpslibclass as mpslib import subprocess diff --git a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_fire.py b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_fire.py index a5ac4e778c83f..2f5ee65658508 100755 --- a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_fire.py +++ b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_fire.py @@ -12,7 +12,6 @@ # mps_fire.py [-a] [-m [-f]] [maxjobs] # mps_fire.py -h -from __future__ import print_function from builtins import range import Alignment.MillePedeAlignmentAlgorithm.mpslib.Mpslibclass as mpslib import Alignment.MillePedeAlignmentAlgorithm.mpslib.tools as mps_tools diff --git a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_list_evts.py b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_list_evts.py index 6e5c43efd2925..a49435e1332cb 100755 --- a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_list_evts.py +++ b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_list_evts.py @@ -14,7 +14,6 @@ M. Schroeder, DESY Hamburg 26-May-2014 """ -from __future__ import print_function import sys diff --git a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_merge.py b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_merge.py index f39449f974a47..75f253d205634 100755 --- a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_merge.py +++ b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_merge.py @@ -6,7 +6,6 @@ # # mps_merge.pl [-c] inCfg mergeCfg mergeDir njobs -from __future__ import print_function from builtins import range import Alignment.MillePedeAlignmentAlgorithm.mpslib.Mpslibclass as mpslib import re diff --git a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_monitormerge.py b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_monitormerge.py index 0abb64d27b2c0..6e966092683bc 100755 --- a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_monitormerge.py +++ b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_monitormerge.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function from builtins import range import os import subprocess diff --git a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_parse_pedechi2hist.py b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_parse_pedechi2hist.py index e8b63c96868c0..b6436de2433c6 100755 --- a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_parse_pedechi2hist.py +++ b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_parse_pedechi2hist.py @@ -15,7 +15,6 @@ # # Use createChi2ndfplot.C to plot the output of this script. -from __future__ import print_function import os import sys import re diff --git a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_setup.py b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_setup.py index 5863cdaf6d3aa..12959ad5de253 100755 --- a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_setup.py +++ b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_setup.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function from builtins import range import os import re diff --git a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_setup_new_align.py b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_setup_new_align.py index ac1484ea0ae29..ac4bec474365b 100755 --- a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_setup_new_align.py +++ b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_setup_new_align.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import os import sys import re diff --git a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_splice.py b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_splice.py index ca49722a4d9d0..c7db8ceb352d7 100755 --- a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_splice.py +++ b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_splice.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -from __future__ import print_function from builtins import range import re import argparse diff --git a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_update.py b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_update.py index 3b7af2d933fa0..bc8a1ca2fbdac 100755 --- a/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_update.py +++ b/Alignment/MillePedeAlignmentAlgorithm/scripts/mps_update.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -from __future__ import print_function from builtins import range import os import re diff --git a/Alignment/MillePedeAlignmentAlgorithm/test/trackerTree_cfg.py b/Alignment/MillePedeAlignmentAlgorithm/test/trackerTree_cfg.py index 29a788200ff00..5f3c3ae8735ab 100644 --- a/Alignment/MillePedeAlignmentAlgorithm/test/trackerTree_cfg.py +++ b/Alignment/MillePedeAlignmentAlgorithm/test/trackerTree_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function ########################################################################## # Creates the TrackerTree.root file. # Configuration file from TrackerAlignment/test/trackerTreeGenerator_cfg.py diff --git a/Alignment/MuonAlignment/python/geometryCSVtoXML.py b/Alignment/MuonAlignment/python/geometryCSVtoXML.py index 1c937acd4a4ea..6976c20e93518 100755 --- a/Alignment/MuonAlignment/python/geometryCSVtoXML.py +++ b/Alignment/MuonAlignment/python/geometryCSVtoXML.py @@ -1,7 +1,6 @@ #!/usr/bin/env python # External libraries (standard in Python >= 2.4, at least) -from __future__ import print_function from sys import stdin from re import split, sub diff --git a/Alignment/MuonAlignment/python/geometryDiff.py b/Alignment/MuonAlignment/python/geometryDiff.py index 7f7789a95677d..897728fb43ea0 100755 --- a/Alignment/MuonAlignment/python/geometryDiff.py +++ b/Alignment/MuonAlignment/python/geometryDiff.py @@ -1,6 +1,5 @@ #!/usr/bin/env python -from __future__ import print_function from builtins import range from Alignment.MuonAlignment.geometryXMLparser import MuonGeometry, dtorder, cscorder import sys, getopt diff --git a/Alignment/MuonAlignment/python/geometryDiffVisualization.py b/Alignment/MuonAlignment/python/geometryDiffVisualization.py index e2d7170dd8ec2..199757234cc56 100644 --- a/Alignment/MuonAlignment/python/geometryDiffVisualization.py +++ b/Alignment/MuonAlignment/python/geometryDiffVisualization.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import import re from math import * from .svgfig import rgb, SVG, pathtoPath, load as load_svg diff --git a/Alignment/MuonAlignment/python/geometryXMLtoCSV.py b/Alignment/MuonAlignment/python/geometryXMLtoCSV.py index 6a8709eb8026f..dcbcffff370f5 100755 --- a/Alignment/MuonAlignment/python/geometryXMLtoCSV.py +++ b/Alignment/MuonAlignment/python/geometryXMLtoCSV.py @@ -24,7 +24,6 @@ # } # External libraries (standard in Python >= 2.4, at least) -from __future__ import print_function from xml.sax import handler, make_parser from sys import stdin diff --git a/Alignment/MuonAlignment/python/makeMuonMisalignmentScenario.py b/Alignment/MuonAlignment/python/makeMuonMisalignmentScenario.py index 94f73d058f1a1..d8badbbfd0a75 100644 --- a/Alignment/MuonAlignment/python/makeMuonMisalignmentScenario.py +++ b/Alignment/MuonAlignment/python/makeMuonMisalignmentScenario.py @@ -1,4 +1,3 @@ -from __future__ import print_function from builtins import range from optparse import OptionParser from random import gauss diff --git a/Alignment/MuonAlignment/test/muonGeometryDBConverter_cfg.py b/Alignment/MuonAlignment/test/muonGeometryDBConverter_cfg.py index b70f9569d469a..51230e0b5b998 100644 --- a/Alignment/MuonAlignment/test/muonGeometryDBConverter_cfg.py +++ b/Alignment/MuonAlignment/test/muonGeometryDBConverter_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing diff --git a/Alignment/MuonAlignmentAlgorithms/python/gather_cfg.py b/Alignment/MuonAlignmentAlgorithms/python/gather_cfg.py index a01da4e1b95cd..1d309fe237867 100644 --- a/Alignment/MuonAlignmentAlgorithms/python/gather_cfg.py +++ b/Alignment/MuonAlignmentAlgorithms/python/gather_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os import FWCore.ParameterSet.Config as cms diff --git a/Alignment/MuonAlignmentAlgorithms/scripts/alignCSCRings.py b/Alignment/MuonAlignmentAlgorithms/scripts/alignCSCRings.py index fbf3eb91276bd..c7d41ccc44d8a 100755 --- a/Alignment/MuonAlignmentAlgorithms/scripts/alignCSCRings.py +++ b/Alignment/MuonAlignmentAlgorithms/scripts/alignCSCRings.py @@ -1,6 +1,5 @@ #! /usr/bin/env python3 -from __future__ import print_function import re,os,sys,shutil import optparse diff --git a/Alignment/MuonAlignmentAlgorithms/scripts/alignmentValidation.py b/Alignment/MuonAlignmentAlgorithms/scripts/alignmentValidation.py index 248c4d4fc332f..de94251351de6 100755 --- a/Alignment/MuonAlignmentAlgorithms/scripts/alignmentValidation.py +++ b/Alignment/MuonAlignmentAlgorithms/scripts/alignmentValidation.py @@ -1,6 +1,5 @@ #! /usr/bin/env python3 -from __future__ import print_function from builtins import range import re,os,sys,shutil import optparse diff --git a/Alignment/MuonAlignmentAlgorithms/scripts/applyRadialCorrections.py b/Alignment/MuonAlignmentAlgorithms/scripts/applyRadialCorrections.py index 2a7627579dc48..335bce4cbaf8e 100644 --- a/Alignment/MuonAlignmentAlgorithms/scripts/applyRadialCorrections.py +++ b/Alignment/MuonAlignmentAlgorithms/scripts/applyRadialCorrections.py @@ -1,4 +1,3 @@ -from __future__ import print_function from builtins import range mep11angle = 0.002 # guess mep12angle = 0.002 # guess diff --git a/Alignment/MuonAlignmentAlgorithms/scripts/convertSQLiteXML.py b/Alignment/MuonAlignmentAlgorithms/scripts/convertSQLiteXML.py index e066cadfc6088..f856246ce0923 100755 --- a/Alignment/MuonAlignmentAlgorithms/scripts/convertSQLiteXML.py +++ b/Alignment/MuonAlignmentAlgorithms/scripts/convertSQLiteXML.py @@ -1,6 +1,5 @@ #! /usr/bin/env python3 -from __future__ import print_function import os, sys, optparse, math prog = sys.argv[0] diff --git a/Alignment/MuonAlignmentAlgorithms/scripts/corrVsCorr.py b/Alignment/MuonAlignmentAlgorithms/scripts/corrVsCorr.py index 815eaec8476ef..fd5d9e703f618 100755 --- a/Alignment/MuonAlignmentAlgorithms/scripts/corrVsCorr.py +++ b/Alignment/MuonAlignmentAlgorithms/scripts/corrVsCorr.py @@ -1,6 +1,5 @@ #! /usr/bin/env python3 -from __future__ import print_function from builtins import range import sys, optparse diff --git a/Alignment/MuonAlignmentAlgorithms/scripts/createBeamHaloJobs.py b/Alignment/MuonAlignmentAlgorithms/scripts/createBeamHaloJobs.py index 85a15e8159eed..e4c9401211e9c 100755 --- a/Alignment/MuonAlignmentAlgorithms/scripts/createBeamHaloJobs.py +++ b/Alignment/MuonAlignmentAlgorithms/scripts/createBeamHaloJobs.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function from builtins import range import os, sys, re, optparse, math diff --git a/Alignment/MuonAlignmentAlgorithms/scripts/createCSCRingsJobs.py b/Alignment/MuonAlignmentAlgorithms/scripts/createCSCRingsJobs.py index d50fc4f852629..dd224a7161f7c 100755 --- a/Alignment/MuonAlignmentAlgorithms/scripts/createCSCRingsJobs.py +++ b/Alignment/MuonAlignmentAlgorithms/scripts/createCSCRingsJobs.py @@ -1,6 +1,5 @@ #! /usr/bin/env python3 -from __future__ import print_function from builtins import range import os, sys, optparse, math diff --git a/Alignment/MuonAlignmentAlgorithms/scripts/createJobs.py b/Alignment/MuonAlignmentAlgorithms/scripts/createJobs.py index 001a19ea1d997..0a457f99e6e18 100755 --- a/Alignment/MuonAlignmentAlgorithms/scripts/createJobs.py +++ b/Alignment/MuonAlignmentAlgorithms/scripts/createJobs.py @@ -1,6 +1,5 @@ #! /usr/bin/env python3 -from __future__ import print_function from builtins import range import os, sys, optparse, math diff --git a/Alignment/MuonAlignmentAlgorithms/scripts/createTree.py b/Alignment/MuonAlignmentAlgorithms/scripts/createTree.py index 3b70c97743a7f..68e1ad723aa47 100755 --- a/Alignment/MuonAlignmentAlgorithms/scripts/createTree.py +++ b/Alignment/MuonAlignmentAlgorithms/scripts/createTree.py @@ -1,6 +1,5 @@ #! /usr/bin/env python3 -from __future__ import print_function from builtins import range import re,os,sys import optparse diff --git a/Alignment/MuonAlignmentAlgorithms/scripts/diffTwoXMLs.py b/Alignment/MuonAlignmentAlgorithms/scripts/diffTwoXMLs.py index 0d43eca138b52..28f95b1dfed78 100755 --- a/Alignment/MuonAlignmentAlgorithms/scripts/diffTwoXMLs.py +++ b/Alignment/MuonAlignmentAlgorithms/scripts/diffTwoXMLs.py @@ -1,6 +1,5 @@ #! /usr/bin/env python3 -from __future__ import print_function import sys, ROOT ROOT.gROOT.SetBatch(1) diff --git a/Alignment/MuonAlignmentAlgorithms/scripts/findQualityFiles.py b/Alignment/MuonAlignmentAlgorithms/scripts/findQualityFiles.py index a3b19fcefc292..715b4fb6d2bf5 100755 --- a/Alignment/MuonAlignmentAlgorithms/scripts/findQualityFiles.py +++ b/Alignment/MuonAlignmentAlgorithms/scripts/findQualityFiles.py @@ -6,7 +6,6 @@ ### also run it with -h option ###################################################### -from __future__ import print_function from builtins import range import os,sys, DLFCN import optparse diff --git a/Alignment/MuonAlignmentAlgorithms/scripts/geometryDiffVisualizer.py b/Alignment/MuonAlignmentAlgorithms/scripts/geometryDiffVisualizer.py index bdc7d3a403999..cb4cfcaf0c671 100755 --- a/Alignment/MuonAlignmentAlgorithms/scripts/geometryDiffVisualizer.py +++ b/Alignment/MuonAlignmentAlgorithms/scripts/geometryDiffVisualizer.py @@ -1,6 +1,5 @@ #! /usr/bin/env python3 -from __future__ import print_function import sys, ROOT from geometryDiffVisualization import * diff --git a/Alignment/MuonAlignmentAlgorithms/scripts/groupFilesInBlocks.py b/Alignment/MuonAlignmentAlgorithms/scripts/groupFilesInBlocks.py index 33fe45b21cc04..1f55117a2a3e1 100755 --- a/Alignment/MuonAlignmentAlgorithms/scripts/groupFilesInBlocks.py +++ b/Alignment/MuonAlignmentAlgorithms/scripts/groupFilesInBlocks.py @@ -1,6 +1,5 @@ #! /usr/bin/env python3 -from __future__ import print_function from builtins import range import re,os,sys,shutil,math import optparse diff --git a/Alignment/MuonAlignmentAlgorithms/scripts/motionPolicyChamber.py b/Alignment/MuonAlignmentAlgorithms/scripts/motionPolicyChamber.py index f6664b0136a68..1b0ad37bea713 100755 --- a/Alignment/MuonAlignmentAlgorithms/scripts/motionPolicyChamber.py +++ b/Alignment/MuonAlignmentAlgorithms/scripts/motionPolicyChamber.py @@ -1,6 +1,5 @@ #! /usr/bin/env python3 -from __future__ import print_function from builtins import range import os, sys, optparse, math, copy from Alignment.MuonAlignment.geometryXMLparser import MuonGeometry, dtorder, cscorder diff --git a/Alignment/MuonAlignmentAlgorithms/scripts/plotscripts.py b/Alignment/MuonAlignmentAlgorithms/scripts/plotscripts.py index aa063b4371949..54bf8b0e1fd59 100644 --- a/Alignment/MuonAlignmentAlgorithms/scripts/plotscripts.py +++ b/Alignment/MuonAlignmentAlgorithms/scripts/plotscripts.py @@ -1,4 +1,3 @@ -from __future__ import print_function from builtins import range import ROOT, array, os, re, random from math import * diff --git a/Alignment/MuonAlignmentAlgorithms/scripts/relativeConstraints.py b/Alignment/MuonAlignmentAlgorithms/scripts/relativeConstraints.py index cd7fff1f49451..d32ea89839594 100755 --- a/Alignment/MuonAlignmentAlgorithms/scripts/relativeConstraints.py +++ b/Alignment/MuonAlignmentAlgorithms/scripts/relativeConstraints.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import sys, optparse, re, math from Alignment.MuonAlignment.geometryXMLparser import MuonGeometry diff --git a/Alignment/MuonAlignmentAlgorithms/scripts/reportVsReport.py b/Alignment/MuonAlignmentAlgorithms/scripts/reportVsReport.py index 3c219fa6865eb..243582a05b588 100755 --- a/Alignment/MuonAlignmentAlgorithms/scripts/reportVsReport.py +++ b/Alignment/MuonAlignmentAlgorithms/scripts/reportVsReport.py @@ -1,6 +1,5 @@ #! /usr/bin/env python3 -from __future__ import print_function from builtins import range import sys, optparse diff --git a/Alignment/OfflineValidation/python/TkAlAllInOneTool/DiMuonV_cfg.py b/Alignment/OfflineValidation/python/TkAlAllInOneTool/DiMuonV_cfg.py index 60538859f858f..3526501021f31 100644 --- a/Alignment/OfflineValidation/python/TkAlAllInOneTool/DiMuonV_cfg.py +++ b/Alignment/OfflineValidation/python/TkAlAllInOneTool/DiMuonV_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function from fnmatch import fnmatch import FWCore.ParameterSet.Config as cms import FWCore.PythonUtilities.LumiList as LumiList diff --git a/Alignment/OfflineValidation/python/TkAlAllInOneTool/betterConfigParser.py b/Alignment/OfflineValidation/python/TkAlAllInOneTool/betterConfigParser.py index fad339ec6c189..cd6be86c081d6 100644 --- a/Alignment/OfflineValidation/python/TkAlAllInOneTool/betterConfigParser.py +++ b/Alignment/OfflineValidation/python/TkAlAllInOneTool/betterConfigParser.py @@ -1,5 +1,3 @@ -from __future__ import print_function -from __future__ import absolute_import import configparser as ConfigParser import os diff --git a/Alignment/OfflineValidation/python/overlapValidationPlot.py b/Alignment/OfflineValidation/python/overlapValidationPlot.py index c15f7123631ee..b5cde3cabdb74 100644 --- a/Alignment/OfflineValidation/python/overlapValidationPlot.py +++ b/Alignment/OfflineValidation/python/overlapValidationPlot.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import -from __future__ import print_function from builtins import range import math diff --git a/Alignment/OfflineValidation/scripts/produceOfflineValidationTex.py b/Alignment/OfflineValidation/scripts/produceOfflineValidationTex.py index e2bd962e25ca9..e2dcff01428be 100755 --- a/Alignment/OfflineValidation/scripts/produceOfflineValidationTex.py +++ b/Alignment/OfflineValidation/scripts/produceOfflineValidationTex.py @@ -17,7 +17,6 @@ -from __future__ import print_function import os import stat import sys diff --git a/Alignment/OfflineValidation/scripts/submitPVResolutionJobs.py b/Alignment/OfflineValidation/scripts/submitPVResolutionJobs.py index 34e6565964bba..d1b6f81920f6c 100755 --- a/Alignment/OfflineValidation/scripts/submitPVResolutionJobs.py +++ b/Alignment/OfflineValidation/scripts/submitPVResolutionJobs.py @@ -6,7 +6,6 @@ submitPVResolutionJobs.py -i PVResolutionExample.ini -D /JetHT/Run2018C-TkAlMinBias-12Nov2019_UL2018-v2/ALCARECO ''' -from __future__ import print_function __author__ = 'Marco Musich' __copyright__ = 'Copyright 2020, CERN CMS' diff --git a/Alignment/OfflineValidation/scripts/submitPVValidationJobs.py b/Alignment/OfflineValidation/scripts/submitPVValidationJobs.py index b3629c8e8afa9..2bf5e1a8056ce 100755 --- a/Alignment/OfflineValidation/scripts/submitPVValidationJobs.py +++ b/Alignment/OfflineValidation/scripts/submitPVValidationJobs.py @@ -6,7 +6,6 @@ submitPVValidationJobs.py -j TEST -D /HLTPhysics/Run2016C-TkAlMinBias-07Dec2018-v1/ALCARECO -i testPVValidation_Relvals_DATA.ini -r ''' -from __future__ import print_function from builtins import range __author__ = 'Marco Musich' diff --git a/Alignment/OfflineValidation/scripts/validateAlignments.py b/Alignment/OfflineValidation/scripts/validateAlignments.py index b4bafa08536b5..55469cfcda309 100755 --- a/Alignment/OfflineValidation/scripts/validateAlignments.py +++ b/Alignment/OfflineValidation/scripts/validateAlignments.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 #test execute: export CMSSW_BASE=/tmp/CMSSW && ./validateAlignments.py -c defaultCRAFTValidation.ini,test.ini -n -N test -from __future__ import print_function from future.utils import lmap import subprocess import json diff --git a/Alignment/OfflineValidation/test/DiElectronVertexValidation_cfg.py b/Alignment/OfflineValidation/test/DiElectronVertexValidation_cfg.py index de1577f7d7a40..56a723b42a00b 100644 --- a/Alignment/OfflineValidation/test/DiElectronVertexValidation_cfg.py +++ b/Alignment/OfflineValidation/test/DiElectronVertexValidation_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function from fnmatch import fnmatch import FWCore.ParameterSet.Config as cms import FWCore.Utilities.FileUtils as FileUtils diff --git a/Alignment/OfflineValidation/test/DiMuonVertexValidation_cfg.py b/Alignment/OfflineValidation/test/DiMuonVertexValidation_cfg.py index 7dc9c0d280fcf..245e6e7af4695 100644 --- a/Alignment/OfflineValidation/test/DiMuonVertexValidation_cfg.py +++ b/Alignment/OfflineValidation/test/DiMuonVertexValidation_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function from fnmatch import fnmatch import FWCore.ParameterSet.Config as cms import FWCore.Utilities.FileUtils as FileUtils diff --git a/Alignment/OfflineValidation/test/submitAllJobs.py b/Alignment/OfflineValidation/test/submitAllJobs.py index 67ea198218f00..495263c18d993 100644 --- a/Alignment/OfflineValidation/test/submitAllJobs.py +++ b/Alignment/OfflineValidation/test/submitAllJobs.py @@ -2,7 +2,6 @@ '''Script that submits CMS Tracker Alignment Primary Vertex Validation workflows ''' -from __future__ import print_function from builtins import range __author__ = 'Marco Musich' diff --git a/Alignment/OfflineValidation/test/testG4Refitter_cfg.py b/Alignment/OfflineValidation/test/testG4Refitter_cfg.py index ab79fb97960a3..6ccadc426b326 100644 --- a/Alignment/OfflineValidation/test/testG4Refitter_cfg.py +++ b/Alignment/OfflineValidation/test/testG4Refitter_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms import sys from enum import Enum diff --git a/Alignment/TrackerAlignment/scripts/query.py b/Alignment/TrackerAlignment/scripts/query.py index c7f50cc309b91..20450ed1b5a4e 100755 --- a/Alignment/TrackerAlignment/scripts/query.py +++ b/Alignment/TrackerAlignment/scripts/query.py @@ -8,7 +8,6 @@ """ DBS data discovery command line interface """ -from __future__ import print_function import httplib, urllib, types, string, os, sys from optparse import OptionParser diff --git a/Alignment/TrackerAlignment/test/Misalignments/createRandomlyMisalignedGeometry_Phase2_cfg.py b/Alignment/TrackerAlignment/test/Misalignments/createRandomlyMisalignedGeometry_Phase2_cfg.py index f2636c8ae1646..1a3e135c6d13a 100644 --- a/Alignment/TrackerAlignment/test/Misalignments/createRandomlyMisalignedGeometry_Phase2_cfg.py +++ b/Alignment/TrackerAlignment/test/Misalignments/createRandomlyMisalignedGeometry_Phase2_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing import copy, sys, os diff --git a/Alignment/TrackerAlignment/test/Misalignments/createRandomlyMisalignedGeometry_cfg.py b/Alignment/TrackerAlignment/test/Misalignments/createRandomlyMisalignedGeometry_cfg.py index 3df00ed9c3def..8e0185293abea 100644 --- a/Alignment/TrackerAlignment/test/Misalignments/createRandomlyMisalignedGeometry_cfg.py +++ b/Alignment/TrackerAlignment/test/Misalignments/createRandomlyMisalignedGeometry_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing import copy, sys, os diff --git a/Alignment/TrackerAlignment/test/createTrackerAlignmentRcds_Phase2_cfg.py b/Alignment/TrackerAlignment/test/createTrackerAlignmentRcds_Phase2_cfg.py index 37658b078bb43..649b874c8d878 100644 --- a/Alignment/TrackerAlignment/test/createTrackerAlignmentRcds_Phase2_cfg.py +++ b/Alignment/TrackerAlignment/test/createTrackerAlignmentRcds_Phase2_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing diff --git a/Alignment/TrackerAlignment/test/createTrackerAlignmentRcds_cfg.py b/Alignment/TrackerAlignment/test/createTrackerAlignmentRcds_cfg.py index 4b6451501aa72..2f16f98ee0fba 100644 --- a/Alignment/TrackerAlignment/test/createTrackerAlignmentRcds_cfg.py +++ b/Alignment/TrackerAlignment/test/createTrackerAlignmentRcds_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms process = cms.Process("Alignment") diff --git a/Alignment/TrackerAlignment/test/mcMisalignmentScaler_cfg.py b/Alignment/TrackerAlignment/test/mcMisalignmentScaler_cfg.py index 4db3edfdcce55..649c22f68e107 100644 --- a/Alignment/TrackerAlignment/test/mcMisalignmentScaler_cfg.py +++ b/Alignment/TrackerAlignment/test/mcMisalignmentScaler_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms process = cms.Process("MCMisalignmentScaler") diff --git a/Alignment/TrackerAlignment/test/trackerTreeGenerator_cfg.py b/Alignment/TrackerAlignment/test/trackerTreeGenerator_cfg.py index 746890a6d0209..c6237ed437bf5 100644 --- a/Alignment/TrackerAlignment/test/trackerTreeGenerator_cfg.py +++ b/Alignment/TrackerAlignment/test/trackerTreeGenerator_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms import os diff --git a/CalibCalorimetry/CaloMiscalibTools/test/make_ecal_miscaplibration.py b/CalibCalorimetry/CaloMiscalibTools/test/make_ecal_miscaplibration.py index ddadf7075c18c..5437a2e455895 100755 --- a/CalibCalorimetry/CaloMiscalibTools/test/make_ecal_miscaplibration.py +++ b/CalibCalorimetry/CaloMiscalibTools/test/make_ecal_miscaplibration.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -from __future__ import print_function import string,time,thread,random,math,sys #global variables diff --git a/CalibCalorimetry/CaloMiscalibTools/test/make_miscalibration.py b/CalibCalorimetry/CaloMiscalibTools/test/make_miscalibration.py index 08001752fdbc5..564eaa1b83187 100755 --- a/CalibCalorimetry/CaloMiscalibTools/test/make_miscalibration.py +++ b/CalibCalorimetry/CaloMiscalibTools/test/make_miscalibration.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -from __future__ import print_function import string,time,thread,random,math,sys #global variables diff --git a/CalibMuon/DTCalibration/python/PlottingTools/plotResiduals.py b/CalibMuon/DTCalibration/python/PlottingTools/plotResiduals.py index 229eab3edac98..36dd3fc267c5e 100644 --- a/CalibMuon/DTCalibration/python/PlottingTools/plotResiduals.py +++ b/CalibMuon/DTCalibration/python/PlottingTools/plotResiduals.py @@ -1,5 +1,3 @@ -from __future__ import print_function -from __future__ import absolute_import import ROOT from .fitResidual import fitResidual from .drawHistoAllChambers import drawHisto diff --git a/CalibMuon/DTCalibration/python/PlottingTools/plotResidualsCosmics.py b/CalibMuon/DTCalibration/python/PlottingTools/plotResidualsCosmics.py index cdd82fd7b3a11..ff000022a950c 100644 --- a/CalibMuon/DTCalibration/python/PlottingTools/plotResidualsCosmics.py +++ b/CalibMuon/DTCalibration/python/PlottingTools/plotResidualsCosmics.py @@ -1,5 +1,3 @@ -from __future__ import print_function -from __future__ import absolute_import import ROOT from .fitResidual import fitResidual from .drawHistoAllChambers import drawHisto diff --git a/CalibMuon/DTCalibration/python/PlottingTools/plotResidualsPerLayer.py b/CalibMuon/DTCalibration/python/PlottingTools/plotResidualsPerLayer.py index 8c11f9c55b649..c2ff08712a2e6 100644 --- a/CalibMuon/DTCalibration/python/PlottingTools/plotResidualsPerLayer.py +++ b/CalibMuon/DTCalibration/python/PlottingTools/plotResidualsPerLayer.py @@ -1,5 +1,3 @@ -from __future__ import print_function -from __future__ import absolute_import import ROOT from .fitResidual import fitResidual from .drawHistoAllChambers import drawHisto diff --git a/CalibMuon/DTCalibration/python/PlottingTools/plotT0FromHistos.py b/CalibMuon/DTCalibration/python/PlottingTools/plotT0FromHistos.py index 23b57c9684f19..7b4ec36cc5442 100644 --- a/CalibMuon/DTCalibration/python/PlottingTools/plotT0FromHistos.py +++ b/CalibMuon/DTCalibration/python/PlottingTools/plotT0FromHistos.py @@ -1,5 +1,3 @@ -from __future__ import print_function -from __future__ import absolute_import import ROOT from .drawHistoAllChambers import drawHisto diff --git a/CalibMuon/DTCalibration/python/PlottingTools/plotTTrigFromHistos.py b/CalibMuon/DTCalibration/python/PlottingTools/plotTTrigFromHistos.py index 762f0b7d835db..1de3f6ddd81a8 100644 --- a/CalibMuon/DTCalibration/python/PlottingTools/plotTTrigFromHistos.py +++ b/CalibMuon/DTCalibration/python/PlottingTools/plotTTrigFromHistos.py @@ -1,5 +1,3 @@ -from __future__ import print_function -from __future__ import absolute_import import ROOT from .drawHistoAllChambers import drawHisto diff --git a/CalibMuon/DTCalibration/python/PlottingTools/plotVDriftFromHistos.py b/CalibMuon/DTCalibration/python/PlottingTools/plotVDriftFromHistos.py index 3e59597c16f16..34dc77210750f 100644 --- a/CalibMuon/DTCalibration/python/PlottingTools/plotVDriftFromHistos.py +++ b/CalibMuon/DTCalibration/python/PlottingTools/plotVDriftFromHistos.py @@ -1,5 +1,3 @@ -from __future__ import print_function -from __future__ import absolute_import import ROOT from .drawHistoAllChambers import drawHisto diff --git a/CalibMuon/DTCalibration/python/Workflow/CrabHelper.py b/CalibMuon/DTCalibration/python/Workflow/CrabHelper.py index 0c67f4f46c5a6..c012acd64df76 100644 --- a/CalibMuon/DTCalibration/python/Workflow/CrabHelper.py +++ b/CalibMuon/DTCalibration/python/Workflow/CrabHelper.py @@ -1,5 +1,3 @@ -from __future__ import print_function -from __future__ import absolute_import import logging import sys import os diff --git a/CalibMuon/DTCalibration/python/Workflow/Crabtools/crabFunctions.py b/CalibMuon/DTCalibration/python/Workflow/Crabtools/crabFunctions.py index a3045f1a78389..17afc8cca4eee 100644 --- a/CalibMuon/DTCalibration/python/Workflow/Crabtools/crabFunctions.py +++ b/CalibMuon/DTCalibration/python/Workflow/Crabtools/crabFunctions.py @@ -4,7 +4,6 @@ # # This module provides common functions for tasks with crab3. # You need no create a CrabController object in order to use the functions -from __future__ import print_function import os,sys,glob import tarfile import xml.etree.ElementTree as ET diff --git a/CalibMuon/DTCalibration/python/Workflow/DTCalibrationWorker.py b/CalibMuon/DTCalibration/python/Workflow/DTCalibrationWorker.py index e158e8837c3cb..a0afe3a12e073 100755 --- a/CalibMuon/DTCalibration/python/Workflow/DTCalibrationWorker.py +++ b/CalibMuon/DTCalibration/python/Workflow/DTCalibrationWorker.py @@ -1,5 +1,3 @@ -from __future__ import print_function -from __future__ import absolute_import import sys,os,time import subprocess from .tools import loadCmsProcess diff --git a/CalibMuon/DTCalibration/python/Workflow/DTTtrigWorkflow.py b/CalibMuon/DTCalibration/python/Workflow/DTTtrigWorkflow.py index 2a46d72998304..465bc14b15f03 100644 --- a/CalibMuon/DTCalibration/python/Workflow/DTTtrigWorkflow.py +++ b/CalibMuon/DTCalibration/python/Workflow/DTTtrigWorkflow.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import import os import logging import glob diff --git a/CalibMuon/DTCalibration/python/Workflow/DTVdriftWorkflow.py b/CalibMuon/DTCalibration/python/Workflow/DTVdriftWorkflow.py index 99c1ecea52812..fbe87cb77f674 100644 --- a/CalibMuon/DTCalibration/python/Workflow/DTVdriftWorkflow.py +++ b/CalibMuon/DTCalibration/python/Workflow/DTVdriftWorkflow.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import import os import logging diff --git a/CalibMuon/DTCalibration/python/Workflow/DTWorkflow.py b/CalibMuon/DTCalibration/python/Workflow/DTWorkflow.py index 156e5310d5a1f..6ddeffd7ba934 100644 --- a/CalibMuon/DTCalibration/python/Workflow/DTWorkflow.py +++ b/CalibMuon/DTCalibration/python/Workflow/DTWorkflow.py @@ -1,5 +1,3 @@ -from __future__ import print_function -from __future__ import absolute_import import os,sys import glob import logging diff --git a/CalibMuon/DTCalibration/python/Workflow/tools.py b/CalibMuon/DTCalibration/python/Workflow/tools.py index b061e9d380a22..b3b42b57f1f9e 100644 --- a/CalibMuon/DTCalibration/python/Workflow/tools.py +++ b/CalibMuon/DTCalibration/python/Workflow/tools.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os,sys,imp import subprocess import logging diff --git a/CalibMuon/DTCalibration/scripts/allPlotsResiduals.py b/CalibMuon/DTCalibration/scripts/allPlotsResiduals.py index 801fec5b6878b..9e7733a322427 100755 --- a/CalibMuon/DTCalibration/scripts/allPlotsResiduals.py +++ b/CalibMuon/DTCalibration/scripts/allPlotsResiduals.py @@ -1,5 +1,4 @@ #! /usr/bin/env python3 -from __future__ import print_function import ROOT import optparse import re diff --git a/CalibMuon/DTCalibration/scripts/mergeVDriftHistosByStation.py b/CalibMuon/DTCalibration/scripts/mergeVDriftHistosByStation.py index 21b996b06ce92..5f1b06d096289 100755 --- a/CalibMuon/DTCalibration/scripts/mergeVDriftHistosByStation.py +++ b/CalibMuon/DTCalibration/scripts/mergeVDriftHistosByStation.py @@ -1,6 +1,5 @@ #! /usr/bin/env python3 -from __future__ import print_function import ROOT import sys diff --git a/CalibMuon/DTCalibration/test/DumpDBToFile_cfg.py b/CalibMuon/DTCalibration/test/DumpDBToFile_cfg.py index 3a10e31efc127..e561b183b02e0 100644 --- a/CalibMuon/DTCalibration/test/DumpDBToFile_cfg.py +++ b/CalibMuon/DTCalibration/test/DumpDBToFile_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing diff --git a/CalibMuon/DTCalibration/test/DumpFileToDB_cfg.py b/CalibMuon/DTCalibration/test/DumpFileToDB_cfg.py index c1303f43c207f..23c8be3f80347 100644 --- a/CalibMuon/DTCalibration/test/DumpFileToDB_cfg.py +++ b/CalibMuon/DTCalibration/test/DumpFileToDB_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing import os diff --git a/CalibTracker/SiPixelESProducers/test/testSiPixelFakeLorentzAngleESSource_cfg.py b/CalibTracker/SiPixelESProducers/test/testSiPixelFakeLorentzAngleESSource_cfg.py index 826ac423d11d2..854d5e27e6281 100644 --- a/CalibTracker/SiPixelESProducers/test/testSiPixelFakeLorentzAngleESSource_cfg.py +++ b/CalibTracker/SiPixelESProducers/test/testSiPixelFakeLorentzAngleESSource_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing diff --git a/CalibTracker/SiStripChannelGain/test/7TeVData/automatic_RunOnCalibTree.py b/CalibTracker/SiStripChannelGain/test/7TeVData/automatic_RunOnCalibTree.py index e2967958f10f7..4b4b0a5ff63c0 100644 --- a/CalibTracker/SiStripChannelGain/test/7TeVData/automatic_RunOnCalibTree.py +++ b/CalibTracker/SiStripChannelGain/test/7TeVData/automatic_RunOnCalibTree.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import os,sys import getopt import subprocess diff --git a/CalibTracker/SiStripChannelGain/test/7TeVData/dataCert.py b/CalibTracker/SiStripChannelGain/test/7TeVData/dataCert.py index a7a012c6d3068..47602105c292c 100644 --- a/CalibTracker/SiStripChannelGain/test/7TeVData/dataCert.py +++ b/CalibTracker/SiStripChannelGain/test/7TeVData/dataCert.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os,json,sys diff --git a/CalibTracker/SiStripChannelGain/test/7TeVData/submitJob.py b/CalibTracker/SiStripChannelGain/test/7TeVData/submitJob.py index b69851410bf4d..516a975a3cf7d 100644 --- a/CalibTracker/SiStripChannelGain/test/7TeVData/submitJob.py +++ b/CalibTracker/SiStripChannelGain/test/7TeVData/submitJob.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import os,sys import getopt import time diff --git a/CalibTracker/SiStripChannelGain/test/CodeExample/computeGain_cfg_OnBatch.py b/CalibTracker/SiStripChannelGain/test/CodeExample/computeGain_cfg_OnBatch.py index 046a0c8c2c4f0..f286cad2266d1 100644 --- a/CalibTracker/SiStripChannelGain/test/CodeExample/computeGain_cfg_OnBatch.py +++ b/CalibTracker/SiStripChannelGain/test/CodeExample/computeGain_cfg_OnBatch.py @@ -1,6 +1,5 @@ #!/usr/bin/env python -from __future__ import print_function import urllib import string import os diff --git a/CalibTracker/SiStripChannelGain/test/CodeExample/produceCalibrationTree_cfg_OnBatch.py b/CalibTracker/SiStripChannelGain/test/CodeExample/produceCalibrationTree_cfg_OnBatch.py index 2b7975aae84d7..ce39c8132267a 100644 --- a/CalibTracker/SiStripChannelGain/test/CodeExample/produceCalibrationTree_cfg_OnBatch.py +++ b/CalibTracker/SiStripChannelGain/test/CodeExample/produceCalibrationTree_cfg_OnBatch.py @@ -1,6 +1,5 @@ #!/usr/bin/env python -from __future__ import print_function import urllib import string import os diff --git a/CalibTracker/SiStripChannelGain/test/Cosmic_B38/MergeOnBatch.py b/CalibTracker/SiStripChannelGain/test/Cosmic_B38/MergeOnBatch.py index ba2f517047824..01b05e5437b49 100644 --- a/CalibTracker/SiStripChannelGain/test/Cosmic_B38/MergeOnBatch.py +++ b/CalibTracker/SiStripChannelGain/test/Cosmic_B38/MergeOnBatch.py @@ -1,6 +1,5 @@ #!/usr/bin/env python -from __future__ import print_function import urllib import string import os diff --git a/CalibTracker/SiStripChannelGain/test/Cosmic_B38/launchOnBatch.py b/CalibTracker/SiStripChannelGain/test/Cosmic_B38/launchOnBatch.py index 4434bdc2123aa..9230b355e8feb 100644 --- a/CalibTracker/SiStripChannelGain/test/Cosmic_B38/launchOnBatch.py +++ b/CalibTracker/SiStripChannelGain/test/Cosmic_B38/launchOnBatch.py @@ -1,6 +1,5 @@ #!/usr/bin/env python -from __future__ import print_function import urllib import string import os diff --git a/CalibTracker/SiStripChannelGain/test/Cosmic_B38/onFarm_MergeJob_cfg.py b/CalibTracker/SiStripChannelGain/test/Cosmic_B38/onFarm_MergeJob_cfg.py index 0e32c7d281f7a..e4712971219c0 100644 --- a/CalibTracker/SiStripChannelGain/test/Cosmic_B38/onFarm_MergeJob_cfg.py +++ b/CalibTracker/SiStripChannelGain/test/Cosmic_B38/onFarm_MergeJob_cfg.py @@ -1,6 +1,5 @@ #!/usr/bin/env python -from __future__ import print_function import urllib import string import os diff --git a/CalibTracker/SiStripChannelGain/test/Cosmic_B38/onFarm_MultiJob_cfg.py b/CalibTracker/SiStripChannelGain/test/Cosmic_B38/onFarm_MultiJob_cfg.py index 0e32c7d281f7a..e4712971219c0 100644 --- a/CalibTracker/SiStripChannelGain/test/Cosmic_B38/onFarm_MultiJob_cfg.py +++ b/CalibTracker/SiStripChannelGain/test/Cosmic_B38/onFarm_MultiJob_cfg.py @@ -1,6 +1,5 @@ #!/usr/bin/env python -from __future__ import print_function import urllib import string import os diff --git a/CalibTracker/SiStripChannelGain/test/PCL/Launch.py b/CalibTracker/SiStripChannelGain/test/PCL/Launch.py index 28a13eea2819c..b42a96babbe59 100644 --- a/CalibTracker/SiStripChannelGain/test/PCL/Launch.py +++ b/CalibTracker/SiStripChannelGain/test/PCL/Launch.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import urllib import string import os diff --git a/CalibTracker/SiStripChannelGain/test/testSSTGain_PCL_FromRECO_cfg.py b/CalibTracker/SiStripChannelGain/test/testSSTGain_PCL_FromRECO_cfg.py index 8235a468266c7..443e08a36dc85 100644 --- a/CalibTracker/SiStripChannelGain/test/testSSTGain_PCL_FromRECO_cfg.py +++ b/CalibTracker/SiStripChannelGain/test/testSSTGain_PCL_FromRECO_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function # Auto generated configuration file # with command line options: stepALCA --datatier ALCARECO --conditions auto:run2_data -s ALCA:PromptCalibProdSiStripGains --eventcontent ALCARECO -n 1000 --dasquery=file dataset=/ZeroBias/Run2016C-SiStripCalMinBias-18Apr2017-v1/ALCARECO run=276243 --no_exec import warnings diff --git a/CalibTracker/SiStripCommon/python/das.py b/CalibTracker/SiStripCommon/python/das.py index 4fbfff8ad8819..60e88386b8345 100644 --- a/CalibTracker/SiStripCommon/python/das.py +++ b/CalibTracker/SiStripCommon/python/das.py @@ -1,4 +1,3 @@ -from __future__ import print_function from das_client import get_data import subprocess #from pdb import set_trace diff --git a/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/SubmitJobs.py b/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/SubmitJobs.py index fce16f8dbd9f4..c4e4d4fa167d2 100644 --- a/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/SubmitJobs.py +++ b/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/SubmitJobs.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -from __future__ import print_function import urllib import string import os diff --git a/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/cleanFolders.py b/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/cleanFolders.py index ba367029c7311..9bbc162f7830b 100644 --- a/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/cleanFolders.py +++ b/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/cleanFolders.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os def getName(log): diff --git a/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/produceCalibrationTree_CosmicsLABP_cfg.py b/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/produceCalibrationTree_CosmicsLABP_cfg.py index bc5062a7a833b..5b824fa9649a9 100644 --- a/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/produceCalibrationTree_CosmicsLABP_cfg.py +++ b/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/produceCalibrationTree_CosmicsLABP_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms from FWCore.ParameterSet.VarParsing import VarParsing diff --git a/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/produceCalibrationTree_template_cfg.py b/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/produceCalibrationTree_template_cfg.py index ac3583de352b0..ee489f9962b28 100644 --- a/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/produceCalibrationTree_template_cfg.py +++ b/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/produceCalibrationTree_template_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing from CalibTracker.SiStripCommon.shallowTree_test_template import * diff --git a/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/submitCalibTree/Config.py b/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/submitCalibTree/Config.py index 5cfcdffcee5a9..0fefcf9856fee 100644 --- a/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/submitCalibTree/Config.py +++ b/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/submitCalibTree/Config.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -from __future__ import print_function import os, time,sys class configuration: diff --git a/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/submitCalibTree/launchJobs.py b/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/submitCalibTree/launchJobs.py index dd2a02ee61646..63a689b02c2f6 100644 --- a/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/submitCalibTree/launchJobs.py +++ b/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/submitCalibTree/launchJobs.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -from __future__ import absolute_import -from __future__ import print_function import urllib from . import Config import string diff --git a/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/submitCalibTree/runJob.py b/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/submitCalibTree/runJob.py index 7649413e7f30d..4ee2e97f07e38 100644 --- a/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/submitCalibTree/runJob.py +++ b/CalibTracker/SiStripCommon/test/MakeCalibrationTrees/submitCalibTree/runJob.py @@ -1,6 +1,4 @@ #!/usr/bin/env python3 -from __future__ import absolute_import -from __future__ import print_function import os import sys import subprocess diff --git a/CalibTracker/SiStripCommon/test/testCalibTree_nano.py b/CalibTracker/SiStripCommon/test/testCalibTree_nano.py index ffdf36102538f..c02d719092be8 100644 --- a/CalibTracker/SiStripCommon/test/testCalibTree_nano.py +++ b/CalibTracker/SiStripCommon/test/testCalibTree_nano.py @@ -1,4 +1,3 @@ -from __future__ import print_function ## adapted from produceCalibrationTree_template_cfg.py diff --git a/CalibTracker/SiStripCommon/test/testCalibTree_nano_G2.py b/CalibTracker/SiStripCommon/test/testCalibTree_nano_G2.py index b532ee28b5dff..0c6676f909472 100644 --- a/CalibTracker/SiStripCommon/test/testCalibTree_nano_G2.py +++ b/CalibTracker/SiStripCommon/test/testCalibTree_nano_G2.py @@ -1,4 +1,3 @@ -from __future__ import print_function ## adapted from produceCalibrationTree_template_cfg.py diff --git a/CalibTracker/SiStripCommon/test/testProduceCalibrationTree_cfg.py b/CalibTracker/SiStripCommon/test/testProduceCalibrationTree_cfg.py index 8391465d5a7e7..ca9b0e201ebf1 100644 --- a/CalibTracker/SiStripCommon/test/testProduceCalibrationTree_cfg.py +++ b/CalibTracker/SiStripCommon/test/testProduceCalibrationTree_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms from PhysicsTools.PatAlgos.patInputFiles_cff import filesRelValTTbarPileUpGENSIMRECO import FWCore.ParameterSet.VarParsing as VarParsing diff --git a/CalibTracker/SiStripDCS/test/ChangeToHVmap.py b/CalibTracker/SiStripDCS/test/ChangeToHVmap.py index 98d1796d27815..5634fe191f4ad 100755 --- a/CalibTracker/SiStripDCS/test/ChangeToHVmap.py +++ b/CalibTracker/SiStripDCS/test/ChangeToHVmap.py @@ -4,7 +4,6 @@ map derived from pedestal runs studies with the old db map into a new accurate map. """ -from __future__ import print_function import sys diff --git a/CalibTracker/SiStripDCS/test/CheckAllIOVs.py b/CalibTracker/SiStripDCS/test/CheckAllIOVs.py index 02b11a13ebecf..235e3238016c3 100755 --- a/CalibTracker/SiStripDCS/test/CheckAllIOVs.py +++ b/CalibTracker/SiStripDCS/test/CheckAllIOVs.py @@ -7,7 +7,6 @@ 3- creates 2 log files per IOV (Summary/Debug) with all the SiStripDetVOff information in ASCII format It is recommended to redirect the output to a file. """ -from __future__ import print_function #3- takes the output of each job and builds a single output with the content of each iov import os diff --git a/CalibTracker/SiStripDCS/test/CheckLogs.py b/CalibTracker/SiStripDCS/test/CheckLogs.py index 6d8572b0dfde3..da9882b12467e 100755 --- a/CalibTracker/SiStripDCS/test/CheckLogs.py +++ b/CalibTracker/SiStripDCS/test/CheckLogs.py @@ -1,7 +1,6 @@ #! /usr/bin/env python #Quick and dirty script to "analyze" the log of the CheckAllIOVs.py to validate #plotting macro ExtractTrends.C -from __future__ import print_function import sys #print "Opening logfile %s"%sys.argv[1] log=open(sys.argv[1]) diff --git a/CalibTracker/SiStripDCS/test/MakeList.py b/CalibTracker/SiStripDCS/test/MakeList.py index dd5a11ea5b251..b35adbd0c6e91 100644 --- a/CalibTracker/SiStripDCS/test/MakeList.py +++ b/CalibTracker/SiStripDCS/test/MakeList.py @@ -1,6 +1,5 @@ #! /usr/bin/env python #Quick and dirty script to provide the necessary (ordered by timestamp list of logs in the) list.txt file used by the ExtractTrends.C root macro -from __future__ import print_function import os import time diff --git a/CalibTracker/SiStripDCS/test/MakeTkMaps.py b/CalibTracker/SiStripDCS/test/MakeTkMaps.py index 1bdadd37554da..bc5ade6af394f 100755 --- a/CalibTracker/SiStripDCS/test/MakeTkMaps.py +++ b/CalibTracker/SiStripDCS/test/MakeTkMaps.py @@ -11,7 +11,6 @@ #TODO: #In the future can put it in scripts/ and take dir to run from and write to as options. -from __future__ import print_function import os, subprocess def ProduceTkMapVoltageInputFiles(workdir=os.getcwd()): #Setting the dir by default to the current working directory... diff --git a/CalibTracker/SiStripDCS/test/ManualO2OForRestart.py b/CalibTracker/SiStripDCS/test/ManualO2OForRestart.py index d22e8ee443f6d..81e5f1b99c855 100755 --- a/CalibTracker/SiStripDCS/test/ManualO2OForRestart.py +++ b/CalibTracker/SiStripDCS/test/ManualO2OForRestart.py @@ -6,7 +6,6 @@ By splitting it in smaller intervals of a given DeltaT it is possible to keep under control the memory used. """ -from __future__ import print_function import os import datetime diff --git a/CalibTracker/SiStripDCS/test/ParseManualO2Olog.py b/CalibTracker/SiStripDCS/test/ParseManualO2Olog.py index f8fd3b651140b..7442dbe32753c 100755 --- a/CalibTracker/SiStripDCS/test/ParseManualO2Olog.py +++ b/CalibTracker/SiStripDCS/test/ParseManualO2Olog.py @@ -2,7 +2,6 @@ #Script to parse the output of ManualO2O.py for various debugging tasks #First use case is to debug issue with HV1/HV2 channels handling -from __future__ import print_function import os,datetime, pickle def GetLogTimestamps(ManualO2Ologfilename): """ diff --git a/CalibTracker/SiStripDCS/test/TimestampToDate.py b/CalibTracker/SiStripDCS/test/TimestampToDate.py index 8d4358373f78c..686ddb03a413c 100644 --- a/CalibTracker/SiStripDCS/test/TimestampToDate.py +++ b/CalibTracker/SiStripDCS/test/TimestampToDate.py @@ -1,4 +1,3 @@ -from __future__ import print_function def pack(high,low): """pack high,low 32bit unsigned int to one unsigned 64bit long long Note:the print value of result number may appear signed, if the sign bit is used. diff --git a/CalibTracker/SiStripDCS/test/convertTime.py b/CalibTracker/SiStripDCS/test/convertTime.py index b30faca3e4d54..02e58fe1106ce 100755 --- a/CalibTracker/SiStripDCS/test/convertTime.py +++ b/CalibTracker/SiStripDCS/test/convertTime.py @@ -1,6 +1,5 @@ #!/usr/bin/env python -from __future__ import print_function import sys import time import calendar diff --git a/CalibTracker/SiStripDCS/test/templateCheckAllIOVs_cfg.py b/CalibTracker/SiStripDCS/test/templateCheckAllIOVs_cfg.py index dedede5b04bfe..3c85cd005c964 100644 --- a/CalibTracker/SiStripDCS/test/templateCheckAllIOVs_cfg.py +++ b/CalibTracker/SiStripDCS/test/templateCheckAllIOVs_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function def pack(high,low): """pack high,low 32bit unsigned int to one unsigned 64bit long long Note:the print value of result number may appear signed, if the sign bit is used. diff --git a/CalibTracker/SiStripESProducers/test/python/CheckAllIOVs.py b/CalibTracker/SiStripESProducers/test/python/CheckAllIOVs.py index 10332a5c2ee3d..b742066230f49 100755 --- a/CalibTracker/SiStripESProducers/test/python/CheckAllIOVs.py +++ b/CalibTracker/SiStripESProducers/test/python/CheckAllIOVs.py @@ -1,7 +1,6 @@ #!/usr/bin/env python """ Helper functions for time conversions """ -from __future__ import print_function def pack(high,low): """pack high,low 32bit unsigned int to one unsigned 64bit long long diff --git a/CalibTracker/SiStripESProducers/test/python/UploadAll.py b/CalibTracker/SiStripESProducers/test/python/UploadAll.py index b0b312ef2bbf9..a325af9bf4a53 100755 --- a/CalibTracker/SiStripESProducers/test/python/UploadAll.py +++ b/CalibTracker/SiStripESProducers/test/python/UploadAll.py @@ -5,7 +5,6 @@ # The tagList needs: tag name, tag type (e.g. Ideal, StartUp, ...) and possible additional # sed commands where the " are escaped as \". -from __future__ import print_function import os import sys diff --git a/CalibTracker/SiStripESProducers/test/python/templateCheckAllIOVs_cfg.py b/CalibTracker/SiStripESProducers/test/python/templateCheckAllIOVs_cfg.py index 1c4193dd25e08..939487f76f3d8 100644 --- a/CalibTracker/SiStripESProducers/test/python/templateCheckAllIOVs_cfg.py +++ b/CalibTracker/SiStripESProducers/test/python/templateCheckAllIOVs_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function def pack(high,low): """pack high,low 32bit unsigned int to one unsigned 64bit long long Note:the print value of result number may appear signed, if the sign bit is used. diff --git a/Calibration/EcalAlCaRecoProducers/test/alcaSkimming.py b/Calibration/EcalAlCaRecoProducers/test/alcaSkimming.py index e196e9ddd676e..f1e9e098f9071 100644 --- a/Calibration/EcalAlCaRecoProducers/test/alcaSkimming.py +++ b/Calibration/EcalAlCaRecoProducers/test/alcaSkimming.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms import os, sys, imp, re import FWCore.ParameterSet.VarParsing as VarParsing diff --git a/Calibration/TkAlCaRecoProducers/test/convertSiStripRootDQMFileToEDM_cfg.py b/Calibration/TkAlCaRecoProducers/test/convertSiStripRootDQMFileToEDM_cfg.py index a9617c910d25b..04a23a1e01b83 100644 --- a/Calibration/TkAlCaRecoProducers/test/convertSiStripRootDQMFileToEDM_cfg.py +++ b/Calibration/TkAlCaRecoProducers/test/convertSiStripRootDQMFileToEDM_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms """ This python cfg converts a plain DQM root file in a EDM file that can be used to run the SiStrip bad channel calibration as done @ Tier0""" diff --git a/Calibration/TkAlCaRecoProducers/test/parseFwkJobReport.py b/Calibration/TkAlCaRecoProducers/test/parseFwkJobReport.py index a809da3fb3fb6..87913bf47d566 100644 --- a/Calibration/TkAlCaRecoProducers/test/parseFwkJobReport.py +++ b/Calibration/TkAlCaRecoProducers/test/parseFwkJobReport.py @@ -1,4 +1,3 @@ -from __future__ import print_function import xml.etree.ElementTree as ET import sys diff --git a/Calibration/TkAlCaRecoProducers/test/testPCLAlCaHarvesting.py b/Calibration/TkAlCaRecoProducers/test/testPCLAlCaHarvesting.py index 7d4d2b22f8afb..a969800b1d6c5 100644 --- a/Calibration/TkAlCaRecoProducers/test/testPCLAlCaHarvesting.py +++ b/Calibration/TkAlCaRecoProducers/test/testPCLAlCaHarvesting.py @@ -1,4 +1,3 @@ -from __future__ import print_function import calendar import CondCore.Utilities.conddblib as conddb diff --git a/Calibration/Tools/scripts/alcaDQMUpload.py b/Calibration/Tools/scripts/alcaDQMUpload.py index afa42d28634a9..924514cc39b7d 100755 --- a/Calibration/Tools/scripts/alcaDQMUpload.py +++ b/Calibration/Tools/scripts/alcaDQMUpload.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import sys, os, os.path, re, string, httplib, mimetypes, urllib, urllib2, httplib, gzip, md5 from cStringIO import StringIO from stat import * diff --git a/CondCore/CondDB/test/condTestRegression.py b/CondCore/CondDB/test/condTestRegression.py index 5e5f532fd2636..31815a0876cad 100755 --- a/CondCore/CondDB/test/condTestRegression.py +++ b/CondCore/CondDB/test/condTestRegression.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import sys, os import glob import time diff --git a/CondCore/DBCommon/python/CondDBCommon_cfi.py b/CondCore/DBCommon/python/CondDBCommon_cfi.py index e0f872cc80f19..017ef518c4716 100644 --- a/CondCore/DBCommon/python/CondDBCommon_cfi.py +++ b/CondCore/DBCommon/python/CondDBCommon_cfi.py @@ -1,4 +1,3 @@ -from __future__ import print_function print(" ##################################################################### ") print(" # WARNING: the module CondCore.DBCommon.CondDBCommon is deprecated. # ") print(" # Please import CondCore.CondDB.CondDB_cfi # ") diff --git a/CondCore/DBCommon/python/CondDBSetup_cfi.py b/CondCore/DBCommon/python/CondDBSetup_cfi.py index fee069b652bc8..35f3824e84898 100644 --- a/CondCore/DBCommon/python/CondDBSetup_cfi.py +++ b/CondCore/DBCommon/python/CondDBSetup_cfi.py @@ -1,4 +1,3 @@ -from __future__ import print_function print(" ##################################################################### ") print(" # WARNING: the module CondCore.DBCommon.CondDBSetup is deprecated. # ") print(" # Please import CondCore.CondDB.CondDB_cfi # ") diff --git a/CondCore/ESSources/python/GlobalTag.py b/CondCore/ESSources/python/GlobalTag.py index b330212c35d38..afa0ffc331425 100644 --- a/CondCore/ESSources/python/GlobalTag.py +++ b/CondCore/ESSources/python/GlobalTag.py @@ -1,4 +1,3 @@ -from __future__ import print_function import sys from Configuration.AlCa.autoCond import aliases diff --git a/CondCore/ESSources/test/python/load_from_globaltag_cfg.py b/CondCore/ESSources/test/python/load_from_globaltag_cfg.py index 32d83b9aa11ca..2f858642b2ffb 100644 --- a/CondCore/ESSources/test/python/load_from_globaltag_cfg.py +++ b/CondCore/ESSources/test/python/load_from_globaltag_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms from Configuration.AlCa.autoCond import autoCond diff --git a/CondCore/ESSources/test/python/load_record_empty_source_cfg.py b/CondCore/ESSources/test/python/load_record_empty_source_cfg.py index a8e015d53d8fa..14875fde673e0 100644 --- a/CondCore/ESSources/test/python/load_record_empty_source_cfg.py +++ b/CondCore/ESSources/test/python/load_record_empty_source_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import time import FWCore.ParameterSet.Config as cms diff --git a/CondCore/ESSources/test/python/loadall_from_gt_empty_source_cfg.py b/CondCore/ESSources/test/python/loadall_from_gt_empty_source_cfg.py index f91c6fdcc08bd..f60c4c7bf71c1 100644 --- a/CondCore/ESSources/test/python/loadall_from_gt_empty_source_cfg.py +++ b/CondCore/ESSources/test/python/loadall_from_gt_empty_source_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import time import FWCore.ParameterSet.Config as cms diff --git a/CondCore/ESSources/test/python/loadall_from_one_record_empty_source_cfg.py b/CondCore/ESSources/test/python/loadall_from_one_record_empty_source_cfg.py index 692585fd34f23..d0e2c9abaef06 100644 --- a/CondCore/ESSources/test/python/loadall_from_one_record_empty_source_cfg.py +++ b/CondCore/ESSources/test/python/loadall_from_one_record_empty_source_cfg.py @@ -1,5 +1,4 @@ -from __future__ import print_function import time import FWCore.ParameterSet.Config as cms diff --git a/CondCore/ESSources/test/python/loadall_from_one_record_empty_source_time_cfg.py b/CondCore/ESSources/test/python/loadall_from_one_record_empty_source_time_cfg.py index 6b8d448ae872f..cd3c0569a2f1b 100644 --- a/CondCore/ESSources/test/python/loadall_from_one_record_empty_source_time_cfg.py +++ b/CondCore/ESSources/test/python/loadall_from_one_record_empty_source_time_cfg.py @@ -1,5 +1,4 @@ -from __future__ import print_function import time import FWCore.ParameterSet.Config as cms diff --git a/CondCore/ESSources/test/python/read_beamspot_cfg.py b/CondCore/ESSources/test/python/read_beamspot_cfg.py index f0f5e60c0279d..2eb22d1f16832 100644 --- a/CondCore/ESSources/test/python/read_beamspot_cfg.py +++ b/CondCore/ESSources/test/python/read_beamspot_cfg.py @@ -1,5 +1,4 @@ -from __future__ import print_function import time import FWCore.ParameterSet.Config as cms diff --git a/CondCore/ESSources/test/python/write_beamspot_cfg.py b/CondCore/ESSources/test/python/write_beamspot_cfg.py index 510f8c84adced..d7440d461eb7e 100644 --- a/CondCore/ESSources/test/python/write_beamspot_cfg.py +++ b/CondCore/ESSources/test/python/write_beamspot_cfg.py @@ -1,5 +1,4 @@ -from __future__ import print_function import time import FWCore.ParameterSet.Config as cms diff --git a/CondCore/EcalPlugins/test/inspect.py b/CondCore/EcalPlugins/test/inspect.py index 65aa1339949e6..f770e2c197fc5 100644 --- a/CondCore/EcalPlugins/test/inspect.py +++ b/CondCore/EcalPlugins/test/inspect.py @@ -1,4 +1,3 @@ -from __future__ import print_function # # I should write a decent test of the python binding... # diff --git a/CondCore/PopCon/test/fetchCronLogTail.py b/CondCore/PopCon/test/fetchCronLogTail.py index 54e51e6450328..b20911450c355 100644 --- a/CondCore/PopCon/test/fetchCronLogTail.py +++ b/CondCore/PopCon/test/fetchCronLogTail.py @@ -1,6 +1,5 @@ #!/usr/bin/env python -from __future__ import print_function import os, sys, re import string import math diff --git a/CondCore/PopCon/test/run_popcon2dropbox_DT.py b/CondCore/PopCon/test/run_popcon2dropbox_DT.py index e65ec743f0ad8..7f1c628898727 100644 --- a/CondCore/PopCon/test/run_popcon2dropbox_DT.py +++ b/CondCore/PopCon/test/run_popcon2dropbox_DT.py @@ -1,7 +1,6 @@ #!/usr/bin/env python '''Script that directs the popcon output to the dropbox ''' -from __future__ import print_function __author__ = 'Giacomo Govi' diff --git a/CondCore/PopCon/test/run_popcon2dropbox_RunInfo.py b/CondCore/PopCon/test/run_popcon2dropbox_RunInfo.py index 24696db678b4d..daed736ccce82 100644 --- a/CondCore/PopCon/test/run_popcon2dropbox_RunInfo.py +++ b/CondCore/PopCon/test/run_popcon2dropbox_RunInfo.py @@ -1,7 +1,6 @@ #!/usr/bin/env python '''Script that directs the popcon output to the dropbox ''' -from __future__ import print_function __author__ = 'Giacomo Govi' diff --git a/CondCore/RPCPlugins/test/inspectRPCObImon.py b/CondCore/RPCPlugins/test/inspectRPCObImon.py index 6f38a6c97fdc2..7577a36ce4e3d 100755 --- a/CondCore/RPCPlugins/test/inspectRPCObImon.py +++ b/CondCore/RPCPlugins/test/inspectRPCObImon.py @@ -1,6 +1,5 @@ #!/usr/bin/env python -from __future__ import print_function import os,sys, DLFCN, time, datetime import matplotlib import numpy diff --git a/CondCore/RunInfoPlugins/test/inspect.py b/CondCore/RunInfoPlugins/test/inspect.py index eae920bd16ade..e57da4bcf5928 100644 --- a/CondCore/RunInfoPlugins/test/inspect.py +++ b/CondCore/RunInfoPlugins/test/inspect.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os,sys, DLFCN sys.setdlopenflags(DLFCN.RTLD_GLOBAL+DLFCN.RTLD_LAZY) diff --git a/CondCore/RunInfoPlugins/test/inspectL1Scaler.py b/CondCore/RunInfoPlugins/test/inspectL1Scaler.py index c489c04be0158..4c11953973f88 100644 --- a/CondCore/RunInfoPlugins/test/inspectL1Scaler.py +++ b/CondCore/RunInfoPlugins/test/inspectL1Scaler.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os,sys, DLFCN sys.setdlopenflags(DLFCN.RTLD_GLOBAL+DLFCN.RTLD_LAZY) diff --git a/CondCore/RunInfoPlugins/test/inspectRunInfo.py b/CondCore/RunInfoPlugins/test/inspectRunInfo.py index 985298812e295..fbf83b8114cd4 100644 --- a/CondCore/RunInfoPlugins/test/inspectRunInfo.py +++ b/CondCore/RunInfoPlugins/test/inspectRunInfo.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os,sys, DLFCN sys.setdlopenflags(DLFCN.RTLD_GLOBAL+DLFCN.RTLD_LAZY) diff --git a/CondCore/RunInfoPlugins/test/inspectRunInfo_219.py b/CondCore/RunInfoPlugins/test/inspectRunInfo_219.py index efcca18775aa5..8d2068a26186f 100644 --- a/CondCore/RunInfoPlugins/test/inspectRunInfo_219.py +++ b/CondCore/RunInfoPlugins/test/inspectRunInfo_219.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os,sys, DLFCN sys.setdlopenflags(DLFCN.RTLD_GLOBAL+DLFCN.RTLD_LAZY) diff --git a/CondCore/RunInfoPlugins/test/inspectRunInfo_3XX.py b/CondCore/RunInfoPlugins/test/inspectRunInfo_3XX.py index d2379f44e6b91..eaf3ff6937c8c 100644 --- a/CondCore/RunInfoPlugins/test/inspectRunInfo_3XX.py +++ b/CondCore/RunInfoPlugins/test/inspectRunInfo_3XX.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os,sys, DLFCN sys.setdlopenflags(DLFCN.RTLD_GLOBAL+DLFCN.RTLD_LAZY) diff --git a/CondCore/RunInfoPlugins/test/inspectRunSummary.py b/CondCore/RunInfoPlugins/test/inspectRunSummary.py index 4a4aeaf878a1a..65d623c908b98 100644 --- a/CondCore/RunInfoPlugins/test/inspectRunSummary.py +++ b/CondCore/RunInfoPlugins/test/inspectRunSummary.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os,sys, DLFCN sys.setdlopenflags(DLFCN.RTLD_GLOBAL+DLFCN.RTLD_LAZY) diff --git a/CondCore/RunInfoPlugins/test/inspectRunSummary_219.py b/CondCore/RunInfoPlugins/test/inspectRunSummary_219.py index 4ffe7aaff0d57..bf066589762cf 100644 --- a/CondCore/RunInfoPlugins/test/inspectRunSummary_219.py +++ b/CondCore/RunInfoPlugins/test/inspectRunSummary_219.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os,sys, DLFCN sys.setdlopenflags(DLFCN.RTLD_GLOBAL+DLFCN.RTLD_LAZY) diff --git a/CondCore/RunInfoPlugins/test/plot2JsonTimeSeries.py b/CondCore/RunInfoPlugins/test/plot2JsonTimeSeries.py index 3323b9723a923..3b1c23f52cb06 100755 --- a/CondCore/RunInfoPlugins/test/plot2JsonTimeSeries.py +++ b/CondCore/RunInfoPlugins/test/plot2JsonTimeSeries.py @@ -4,7 +4,6 @@ ## ################################################ -from __future__ import print_function import json import ROOT from array import array diff --git a/CondCore/SiStripPlugins/test/findPeakRuns.py b/CondCore/SiStripPlugins/test/findPeakRuns.py index 2a5f1a032130b..2a9a507032331 100644 --- a/CondCore/SiStripPlugins/test/findPeakRuns.py +++ b/CondCore/SiStripPlugins/test/findPeakRuns.py @@ -18,7 +18,6 @@ python findPeakRuns.py -f log.json -r isTrackerIn.json > & allTrackerRuns.csv & ''' -from __future__ import print_function import json import ROOT from pprint import pprint diff --git a/CondCore/SiStripPlugins/test/plotJson.py b/CondCore/SiStripPlugins/test/plotJson.py index cd4cf6815d7f5..f29411f9cd48d 100644 --- a/CondCore/SiStripPlugins/test/plotJson.py +++ b/CondCore/SiStripPlugins/test/plotJson.py @@ -1,4 +1,3 @@ -from __future__ import print_function import json import ROOT from pprint import pprint diff --git a/CondCore/Utilities/python/CondDBFW/tests/__main__.py b/CondCore/Utilities/python/CondDBFW/tests/__main__.py index 1dccf59333786..6a8e68d58644f 100644 --- a/CondCore/Utilities/python/CondDBFW/tests/__main__.py +++ b/CondCore/Utilities/python/CondDBFW/tests/__main__.py @@ -3,7 +3,6 @@ Unit tests for python conddblib framework. """ -from __future__ import absolute_import import unittest import sys diff --git a/CondCore/Utilities/python/CondDBFW/tests/data_formats_tests.py b/CondCore/Utilities/python/CondDBFW/tests/data_formats_tests.py index 8c975d56c9f87..e2c7ad11de073 100644 --- a/CondCore/Utilities/python/CondDBFW/tests/data_formats_tests.py +++ b/CondCore/Utilities/python/CondDBFW/tests/data_formats_tests.py @@ -1,4 +1,3 @@ -from __future__ import print_function import unittest import sys import datetime diff --git a/CondCore/Utilities/python/CondDBFW/tests/querying_tests.py b/CondCore/Utilities/python/CondDBFW/tests/querying_tests.py index 0ae64fbf36187..08ccf9dab6855 100644 --- a/CondCore/Utilities/python/CondDBFW/tests/querying_tests.py +++ b/CondCore/Utilities/python/CondDBFW/tests/querying_tests.py @@ -1,4 +1,3 @@ -from __future__ import print_function import unittest import sys import datetime diff --git a/CondCore/Utilities/python/cond2xml.py b/CondCore/Utilities/python/cond2xml.py index 91f3bd79042f9..bf6405faef39a 100644 --- a/CondCore/Utilities/python/cond2xml.py +++ b/CondCore/Utilities/python/cond2xml.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os import shutil diff --git a/CondCore/Utilities/python/conddb_migrate.py b/CondCore/Utilities/python/conddb_migrate.py index badb7da179692..591de38f66305 100755 --- a/CondCore/Utilities/python/conddb_migrate.py +++ b/CondCore/Utilities/python/conddb_migrate.py @@ -1,7 +1,6 @@ #!/usr/bin/env python3 '''CMS Conditions DB migration script. ''' -from __future__ import print_function import os diff --git a/CondCore/Utilities/python/o2olib.py b/CondCore/Utilities/python/o2olib.py index ea873305c9028..7a92d45b35189 100644 --- a/CondCore/Utilities/python/o2olib.py +++ b/CondCore/Utilities/python/o2olib.py @@ -1,4 +1,3 @@ -from __future__ import print_function __author__ = 'Giacomo Govi' import sqlalchemy diff --git a/CondCore/Utilities/python/popcon2dropbox.py b/CondCore/Utilities/python/popcon2dropbox.py index fac71834088db..16d30794ccbdd 100644 --- a/CondCore/Utilities/python/popcon2dropbox.py +++ b/CondCore/Utilities/python/popcon2dropbox.py @@ -1,4 +1,3 @@ -from __future__ import print_function import subprocess import json import netrc diff --git a/CondCore/Utilities/python/popcon2dropbox_job_conf.py b/CondCore/Utilities/python/popcon2dropbox_job_conf.py index 1e983212134cd..f4e4e67d9fa6d 100644 --- a/CondCore/Utilities/python/popcon2dropbox_job_conf.py +++ b/CondCore/Utilities/python/popcon2dropbox_job_conf.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing from . import popcon2dropbox diff --git a/CondCore/Utilities/python/tier0.py b/CondCore/Utilities/python/tier0.py index b8eb3d6c349ac..4c00b2330e67b 100644 --- a/CondCore/Utilities/python/tier0.py +++ b/CondCore/Utilities/python/tier0.py @@ -1,4 +1,3 @@ -from __future__ import print_function #-toDo: move this to common? diff --git a/CondCore/Utilities/scripts/conddb b/CondCore/Utilities/scripts/conddb index 30abef9257088..701eb3c939dfb 100755 --- a/CondCore/Utilities/scripts/conddb +++ b/CondCore/Utilities/scripts/conddb @@ -1,7 +1,6 @@ #!/usr/bin/env python3 '''CMS Conditions DB command-line tool. ''' -from __future__ import print_function import argparse import datetime diff --git a/CondCore/Utilities/scripts/conddbCopyTest.py b/CondCore/Utilities/scripts/conddbCopyTest.py index de74647a4741d..599ca894f608c 100644 --- a/CondCore/Utilities/scripts/conddbCopyTest.py +++ b/CondCore/Utilities/scripts/conddbCopyTest.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import sqlite3 import subprocess import json diff --git a/CondCore/Utilities/scripts/conddb_version_mgr.py b/CondCore/Utilities/scripts/conddb_version_mgr.py index 475a6149e4926..bbc96dd54abb2 100755 --- a/CondCore/Utilities/scripts/conddb_version_mgr.py +++ b/CondCore/Utilities/scripts/conddb_version_mgr.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import cx_Oracle import datetime import calendar diff --git a/CondCore/Utilities/scripts/conditionUploadTest.py b/CondCore/Utilities/scripts/conditionUploadTest.py index 493f865133d45..615c516d0bb44 100644 --- a/CondCore/Utilities/scripts/conditionUploadTest.py +++ b/CondCore/Utilities/scripts/conditionUploadTest.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import cx_Oracle import subprocess import json diff --git a/CondCore/Utilities/scripts/getPayloadData.py b/CondCore/Utilities/scripts/getPayloadData.py index a052e69123f80..20aab2d1042b5 100755 --- a/CondCore/Utilities/scripts/getPayloadData.py +++ b/CondCore/Utilities/scripts/getPayloadData.py @@ -1,7 +1,6 @@ #!/usr/bin/env python3 -from __future__ import print_function import shutil import glob import json diff --git a/CondCore/Utilities/scripts/popconRun b/CondCore/Utilities/scripts/popconRun index 66c5edc744dc1..9a0ece0bd99a1 100755 --- a/CondCore/Utilities/scripts/popconRun +++ b/CondCore/Utilities/scripts/popconRun @@ -1,7 +1,6 @@ #!/usr/bin/env python3 '''Script that directs the popcon output to the condition uploader ''' -from __future__ import print_function import os import sys from CondCore.Utilities import popcon2dropbox diff --git a/CondCore/Utilities/scripts/uploadConditions.py b/CondCore/Utilities/scripts/uploadConditions.py index 7a01863e00d6f..55f6e64978d50 100755 --- a/CondCore/Utilities/scripts/uploadConditions.py +++ b/CondCore/Utilities/scripts/uploadConditions.py @@ -2,7 +2,6 @@ '''Script that uploads to the new CMS conditions uploader. Adapted to the new infrastructure from v6 of the upload.py script for the DropBox from Miguel Ojeda. ''' -from __future__ import print_function __author__ = 'Andreas Pfeiffer' __copyright__ = 'Copyright 2015, CERN CMS' diff --git a/CondCore/Utilities/test/CondDBFW/testing_classes.py b/CondCore/Utilities/test/CondDBFW/testing_classes.py index 138fab20d0d7e..1c431b03d7991 100644 --- a/CondCore/Utilities/test/CondDBFW/testing_classes.py +++ b/CondCore/Utilities/test/CondDBFW/testing_classes.py @@ -8,7 +8,6 @@ TODO: Change code so that all connections are used when testing queries - if this isn't too bad a thing to do with the DBs. """ -from __future__ import print_function import unittest import sys diff --git a/CondCore/Utilities/test/iovInspector_test.py b/CondCore/Utilities/test/iovInspector_test.py index 009ea9bc2c42e..b2846fc0af033 100644 --- a/CondCore/Utilities/test/iovInspector_test.py +++ b/CondCore/Utilities/test/iovInspector_test.py @@ -1,4 +1,3 @@ -from __future__ import print_function # test of iovInpector import os,os.path,string diff --git a/CondCore/Utilities/test/listTags.py b/CondCore/Utilities/test/listTags.py index 7017b67206177..310ecfaa6c340 100644 --- a/CondCore/Utilities/test/listTags.py +++ b/CondCore/Utilities/test/listTags.py @@ -1,4 +1,3 @@ -from __future__ import print_function import DLFCN, sys, os, time sys.setdlopenflags(DLFCN.RTLD_GLOBAL+DLFCN.RTLD_LAZY) diff --git a/CondFormats/Common/test/parse_output.py b/CondFormats/Common/test/parse_output.py index 8c0619e18713d..284326aec1d0f 100644 --- a/CondFormats/Common/test/parse_output.py +++ b/CondFormats/Common/test/parse_output.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -from __future__ import print_function import os import json diff --git a/CondFormats/MFObjects/test/writeAllMagFieldConfigDB.py b/CondFormats/MFObjects/test/writeAllMagFieldConfigDB.py index 3d38b4b707d26..e7155e866fbc8 100755 --- a/CondFormats/MFObjects/test/writeAllMagFieldConfigDB.py +++ b/CondFormats/MFObjects/test/writeAllMagFieldConfigDB.py @@ -1,6 +1,5 @@ #!/usr/bin/env python -from __future__ import print_function import os import sys diff --git a/CondFormats/Serialization/python/condformats_serialization_generate.py b/CondFormats/Serialization/python/condformats_serialization_generate.py index 43253e6233490..404ab9a512b6d 100755 --- a/CondFormats/Serialization/python/condformats_serialization_generate.py +++ b/CondFormats/Serialization/python/condformats_serialization_generate.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -from __future__ import print_function '''CMS Conditions DB Serialization generator. Generates the non-intrusive serialization code required for the classes diff --git a/CondFormats/SiStripObjects/test/SiStripBadChannelInspector.py b/CondFormats/SiStripObjects/test/SiStripBadChannelInspector.py index 689e10cd75b70..5c10f2d98768b 100644 --- a/CondFormats/SiStripObjects/test/SiStripBadChannelInspector.py +++ b/CondFormats/SiStripObjects/test/SiStripBadChannelInspector.py @@ -1,4 +1,3 @@ -from __future__ import print_function import DLFCN, sys, os sys.setdlopenflags(DLFCN.RTLD_GLOBAL+DLFCN.RTLD_LAZY) import pluginCondDBPyInterface as condDB diff --git a/CondFormats/SiStripObjects/test/SiStripConfObjectInspector.py b/CondFormats/SiStripObjects/test/SiStripConfObjectInspector.py index b3aef5b58b187..69fe1180949be 100644 --- a/CondFormats/SiStripObjects/test/SiStripConfObjectInspector.py +++ b/CondFormats/SiStripObjects/test/SiStripConfObjectInspector.py @@ -1,4 +1,3 @@ -from __future__ import print_function import DLFCN, sys, os sys.setdlopenflags(DLFCN.RTLD_GLOBAL+DLFCN.RTLD_LAZY) import pluginCondDBPyInterface as condDB diff --git a/CondFormats/SiStripObjects/test/SiStripLatencyInspector.py b/CondFormats/SiStripObjects/test/SiStripLatencyInspector.py index f8e6300fa2a11..bbf6fd8649b02 100644 --- a/CondFormats/SiStripObjects/test/SiStripLatencyInspector.py +++ b/CondFormats/SiStripObjects/test/SiStripLatencyInspector.py @@ -1,4 +1,3 @@ -from __future__ import print_function import DLFCN, sys, os sys.setdlopenflags(DLFCN.RTLD_GLOBAL+DLFCN.RTLD_LAZY) import pluginCondDBPyInterface as condDB diff --git a/CondTools/BTau/python/bTagCalibrationDbCreation.py b/CondTools/BTau/python/bTagCalibrationDbCreation.py index a6bb9430940aa..6c428db415e4b 100644 --- a/CondTools/BTau/python/bTagCalibrationDbCreation.py +++ b/CondTools/BTau/python/bTagCalibrationDbCreation.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os import sys import FWCore.ParameterSet.Config as cms diff --git a/CondTools/BTau/python/checkBTagCalibrationConsistency.py b/CondTools/BTau/python/checkBTagCalibrationConsistency.py index 5db9ddb02a527..e278ff0df6d9e 100755 --- a/CondTools/BTau/python/checkBTagCalibrationConsistency.py +++ b/CondTools/BTau/python/checkBTagCalibrationConsistency.py @@ -1,7 +1,5 @@ #!/usr/bin/env python -from __future__ import print_function -from __future__ import absolute_import import itertools import unittest import sys diff --git a/CondTools/BTau/python/combineBTagCalibrationData.py b/CondTools/BTau/python/combineBTagCalibrationData.py index a581c357b3ac0..b0cf0ab8b7809 100755 --- a/CondTools/BTau/python/combineBTagCalibrationData.py +++ b/CondTools/BTau/python/combineBTagCalibrationData.py @@ -1,7 +1,5 @@ #!/usr/bin/env python -from __future__ import print_function -from __future__ import absolute_import import os import sys import itertools diff --git a/CondTools/BTau/python/dataLoader.py b/CondTools/BTau/python/dataLoader.py index d7559de8924b3..993ffe797e350 100644 --- a/CondTools/BTau/python/dataLoader.py +++ b/CondTools/BTau/python/dataLoader.py @@ -1,4 +1,3 @@ -from __future__ import print_function import itertools import ROOT try: diff --git a/CondTools/BTau/python/generateFlavCfromFlavB.py b/CondTools/BTau/python/generateFlavCfromFlavB.py index 665a500a48e50..435ad0b2f552d 100755 --- a/CondTools/BTau/python/generateFlavCfromFlavB.py +++ b/CondTools/BTau/python/generateFlavCfromFlavB.py @@ -1,7 +1,5 @@ #!/usr/bin/env python -from __future__ import print_function -from __future__ import absolute_import import os import sys import itertools diff --git a/CondTools/BTau/python/generateStandaloneCode.py b/CondTools/BTau/python/generateStandaloneCode.py index 902a6b96b833c..22d716a7424ab 100755 --- a/CondTools/BTau/python/generateStandaloneCode.py +++ b/CondTools/BTau/python/generateStandaloneCode.py @@ -1,6 +1,5 @@ #!/usr/bin/env python -from __future__ import print_function import os from os.path import join diff --git a/CondTools/CTPPS/test/largeXMLmanipulations/script_tables.py b/CondTools/CTPPS/test/largeXMLmanipulations/script_tables.py index 89db9ee287a22..4e1d0937dbcac 100644 --- a/CondTools/CTPPS/test/largeXMLmanipulations/script_tables.py +++ b/CondTools/CTPPS/test/largeXMLmanipulations/script_tables.py @@ -1,5 +1,4 @@ import subprocess -from __future__ import print_function infile = open("alignment_export_2018_12_07.1.xml","rt") xmllines = infile.readlines() diff --git a/CondTools/CTPPS/test/retrieve_sqlite_PixGainCalib_cfg.py b/CondTools/CTPPS/test/retrieve_sqlite_PixGainCalib_cfg.py index fe07e30927c6b..31dffc1a28ea2 100644 --- a/CondTools/CTPPS/test/retrieve_sqlite_PixGainCalib_cfg.py +++ b/CondTools/CTPPS/test/retrieve_sqlite_PixGainCalib_cfg.py @@ -1,6 +1,5 @@ import FWCore.ParameterSet.Config as cms import sys,os -from __future__ import print_function arguments=sys.argv sqlitename="ctppspixgain.db" diff --git a/CondTools/CTPPS/test/run_rp_realalignment_table.py b/CondTools/CTPPS/test/run_rp_realalignment_table.py index a75f5988593b9..3c3f1be527852 100644 --- a/CondTools/CTPPS/test/run_rp_realalignment_table.py +++ b/CondTools/CTPPS/test/run_rp_realalignment_table.py @@ -1,6 +1,5 @@ #! python3 -from __future__ import print_function ### this script takes a file with a list of IOVs and subdir name where separated xmls files are located ### the xml files have the iov start runno in the name and in the body (iov node of the xml) which should match diff --git a/CondTools/CTPPS/test/testReadDB_PixGainCalib_cfg.py b/CondTools/CTPPS/test/testReadDB_PixGainCalib_cfg.py index 581d2c8c17ede..48e5ecd9bf31a 100644 --- a/CondTools/CTPPS/test/testReadDB_PixGainCalib_cfg.py +++ b/CondTools/CTPPS/test/testReadDB_PixGainCalib_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms import sys,os diff --git a/CondTools/CTPPS/test/write-ctpps-pixel-gainscalibrations_cfg.py b/CondTools/CTPPS/test/write-ctpps-pixel-gainscalibrations_cfg.py index 3300f0f3f1d4b..7a03587ace4e1 100644 --- a/CondTools/CTPPS/test/write-ctpps-pixel-gainscalibrations_cfg.py +++ b/CondTools/CTPPS/test/write-ctpps-pixel-gainscalibrations_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms import sys,os diff --git a/CondTools/CTPPS/test/write-ctpps-rprealalignment_table_cfg.py b/CondTools/CTPPS/test/write-ctpps-rprealalignment_table_cfg.py index d62baf1602d30..e57b4dd4bcbf2 100644 --- a/CondTools/CTPPS/test/write-ctpps-rprealalignment_table_cfg.py +++ b/CondTools/CTPPS/test/write-ctpps-rprealalignment_table_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms process = cms.Process('test') diff --git a/CondTools/CTPPS/test/write-ctpps-rprealalignment_table_test.py b/CondTools/CTPPS/test/write-ctpps-rprealalignment_table_test.py index 125e03f49af50..c4ca04f71518e 100644 --- a/CondTools/CTPPS/test/write-ctpps-rprealalignment_table_test.py +++ b/CondTools/CTPPS/test/write-ctpps-rprealalignment_table_test.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms process = cms.Process('test') diff --git a/CondTools/Ecal/python/EcalCondDB.py b/CondTools/Ecal/python/EcalCondDB.py index 7f3ca0131fe8c..1fc468259a9a7 100755 --- a/CondTools/Ecal/python/EcalCondDB.py +++ b/CondTools/Ecal/python/EcalCondDB.py @@ -5,8 +5,6 @@ # Main script to list, plot, draw, dump Ecal conditions # # -from __future__ import print_function -from __future__ import absolute_import import os,sys,getopt diff --git a/CondTools/Ecal/python/EcalCondTools.py b/CondTools/Ecal/python/EcalCondTools.py index c24ca3f84165c..41eca56fb0522 100644 --- a/CondTools/Ecal/python/EcalCondTools.py +++ b/CondTools/Ecal/python/EcalCondTools.py @@ -1,5 +1,3 @@ -from __future__ import print_function -from __future__ import absolute_import # # Misc functions to manipulate Ecal records # author: Stefano Argiro diff --git a/CondTools/Ecal/python/SplitLinear.py b/CondTools/Ecal/python/SplitLinear.py index 1721939bd5ca6..31a5d35eea43f 100644 --- a/CondTools/Ecal/python/SplitLinear.py +++ b/CondTools/Ecal/python/SplitLinear.py @@ -2,7 +2,6 @@ #from G.Benelli and Arun Mittal # 2016 November 17 #Quick script to split a large sqlite file (holding all of our Noise payloads (Run1+Run2) into a set of smaller ones. -from __future__ import print_function import subprocess IOVs=[] for line in subprocess.Popen("conddb --noLimit --db Linear.db list EcalLinearCorrections_from2011_offline",shell=True,stdout=subprocess.PIPE,stderr=subprocess.STDOUT).stdout.readlines(): diff --git a/CondTools/Ecal/python/SplitSqlite.py b/CondTools/Ecal/python/SplitSqlite.py index e79fead99f113..53543346588eb 100644 --- a/CondTools/Ecal/python/SplitSqlite.py +++ b/CondTools/Ecal/python/SplitSqlite.py @@ -2,7 +2,6 @@ #from G.Benelli and Arun Mittal # 2016 November 17 #Quick script to split a large sqlite file (holding all of our Noise payloads (Run1+Run2) into a set of smaller ones. -from __future__ import print_function import subprocess #Input IOVs: #Reference for the use of subprocess Popen to execute a command: diff --git a/CondTools/Ecal/scripts/loadConditions.py b/CondTools/Ecal/scripts/loadConditions.py index 305bed440ea2b..8d3032ddba641 100644 --- a/CondTools/Ecal/scripts/loadConditions.py +++ b/CondTools/Ecal/scripts/loadConditions.py @@ -1,4 +1,3 @@ -from __future__ import print_function # $Id: loadConditions.py,v 1.4 2008/12/19 11:02:21 argiro Exp $ # # Author: Stefano Argiro' diff --git a/CondTools/Ecal/test/tools/inspectEcal.py b/CondTools/Ecal/test/tools/inspectEcal.py index 7052b592186ce..09cf617926fbf 100755 --- a/CondTools/Ecal/test/tools/inspectEcal.py +++ b/CondTools/Ecal/test/tools/inspectEcal.py @@ -1,6 +1,5 @@ #! /usr/bin/env python -from __future__ import print_function import os,sys, DLFCN,getopt sys.setdlopenflags(DLFCN.RTLD_GLOBAL+DLFCN.RTLD_LAZY) diff --git a/CondTools/Hcal/test/runDumpHcalCond_cfg.py b/CondTools/Hcal/test/runDumpHcalCond_cfg.py index fa56c00e7ff8a..a9f9b805d4ddd 100644 --- a/CondTools/Hcal/test/runDumpHcalCond_cfg.py +++ b/CondTools/Hcal/test/runDumpHcalCond_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import sys import FWCore.ParameterSet.Config as cms from FWCore.ParameterSet.VarParsing import VarParsing diff --git a/CondTools/SiPixel/test/SiPixelDynamicInefficiencyDB_cfg.py b/CondTools/SiPixel/test/SiPixelDynamicInefficiencyDB_cfg.py index e69046695247d..2667a025d820b 100644 --- a/CondTools/SiPixel/test/SiPixelDynamicInefficiencyDB_cfg.py +++ b/CondTools/SiPixel/test/SiPixelDynamicInefficiencyDB_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os import shlex, shutil, getpass #import subprocess diff --git a/CondTools/SiPixel/test/SiPixelDynamicInefficiencyReader_cfg.py b/CondTools/SiPixel/test/SiPixelDynamicInefficiencyReader_cfg.py index 884b95bfa1ba4..c259cc5b9ce85 100644 --- a/CondTools/SiPixel/test/SiPixelDynamicInefficiencyReader_cfg.py +++ b/CondTools/SiPixel/test/SiPixelDynamicInefficiencyReader_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms process = cms.Process("Test") diff --git a/CondTools/SiPixel/test/SiPixelGainCalibScaler_cfg.py b/CondTools/SiPixel/test/SiPixelGainCalibScaler_cfg.py index 883987ffef159..62f14fb6fe1c9 100644 --- a/CondTools/SiPixel/test/SiPixelGainCalibScaler_cfg.py +++ b/CondTools/SiPixel/test/SiPixelGainCalibScaler_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing diff --git a/CondTools/SiPixel/test/SiPixelInclusiveBuilder_cfg.py b/CondTools/SiPixel/test/SiPixelInclusiveBuilder_cfg.py index e7a89d06ff697..eabe5aa88f89c 100644 --- a/CondTools/SiPixel/test/SiPixelInclusiveBuilder_cfg.py +++ b/CondTools/SiPixel/test/SiPixelInclusiveBuilder_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os import shlex, subprocess import shutil, getpass diff --git a/CondTools/SiPixel/test/SiPixelLorentzAngleDB_cfg.py b/CondTools/SiPixel/test/SiPixelLorentzAngleDB_cfg.py index 16e96ab480f3d..c9c3fd77c3eaf 100644 --- a/CondTools/SiPixel/test/SiPixelLorentzAngleDB_cfg.py +++ b/CondTools/SiPixel/test/SiPixelLorentzAngleDB_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os import shlex, shutil, getpass #import subprocess diff --git a/CondTools/SiPixel/test/SiPixelLorentzAngleReader_cfg.py b/CondTools/SiPixel/test/SiPixelLorentzAngleReader_cfg.py index b1197d86b6372..182dd4227b6a2 100644 --- a/CondTools/SiPixel/test/SiPixelLorentzAngleReader_cfg.py +++ b/CondTools/SiPixel/test/SiPixelLorentzAngleReader_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms process = cms.Process("Test") diff --git a/CondTools/SiPixel/test/SiPixelQualityPlotter_cfg.py b/CondTools/SiPixel/test/SiPixelQualityPlotter_cfg.py index 90682233d0fda..e65e7f7225ec3 100644 --- a/CondTools/SiPixel/test/SiPixelQualityPlotter_cfg.py +++ b/CondTools/SiPixel/test/SiPixelQualityPlotter_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import shlex, shutil, getpass import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing diff --git a/CondTools/SiPixel/test/SiPixelVCalDB_cfg.py b/CondTools/SiPixel/test/SiPixelVCalDB_cfg.py index a7650efb88a8c..a73648bd2184d 100755 --- a/CondTools/SiPixel/test/SiPixelVCalDB_cfg.py +++ b/CondTools/SiPixel/test/SiPixelVCalDB_cfg.py @@ -1,6 +1,5 @@ #! /usr/bin/env cmsRun # Author: Izaak Neutelings (March 2020) -from __future__ import print_function #import os import os, shlex, shutil, getpass #import subprocess diff --git a/CondTools/SiPixel/test/SiPixelVCalReader_cfg.py b/CondTools/SiPixel/test/SiPixelVCalReader_cfg.py index a8ac21fb9fea5..1330fca79ba85 100644 --- a/CondTools/SiPixel/test/SiPixelVCalReader_cfg.py +++ b/CondTools/SiPixel/test/SiPixelVCalReader_cfg.py @@ -1,6 +1,5 @@ #! /usr/bin/env cmsRun # Author: Izaak Neutelings (March 2020) -from __future__ import print_function import FWCore.ParameterSet.Config as cms from Configuration.StandardSequences.Eras import eras diff --git a/CondTools/SiPixel/test/runPixelPopConCalib.py b/CondTools/SiPixel/test/runPixelPopConCalib.py index a5d8810f01f87..15e8f66cf7534 100755 --- a/CondTools/SiPixel/test/runPixelPopConCalib.py +++ b/CondTools/SiPixel/test/runPixelPopConCalib.py @@ -6,7 +6,6 @@ Initial version: M. Eads, Sep 2008 """ -from __future__ import print_function import os, sys, getopt, shutil from socket import getfqdn diff --git a/CondTools/SiStrip/test/CheckDetVOff.py b/CondTools/SiStrip/test/CheckDetVOff.py index 3ff6077fa96bf..4c3bd8ec4c2e5 100755 --- a/CondTools/SiStrip/test/CheckDetVOff.py +++ b/CondTools/SiStrip/test/CheckDetVOff.py @@ -4,7 +4,6 @@ This script checks the outputs from SiStripDetVOffFakeBuilder and reader. It compares the status of all detIds both for low and high voltage and it checks that the values written in the database are correctly read back. ''' -from __future__ import print_function import os diff --git a/CondTools/SiStrip/test/SiStripChannelGainFromDBMiscalibrator_cfg.py b/CondTools/SiStrip/test/SiStripChannelGainFromDBMiscalibrator_cfg.py index 66e8bf63752c1..b1b06b707fb70 100644 --- a/CondTools/SiStrip/test/SiStripChannelGainFromDBMiscalibrator_cfg.py +++ b/CondTools/SiStrip/test/SiStripChannelGainFromDBMiscalibrator_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing diff --git a/CondTools/SiStrip/test/SiStripNoiseFromDBMiscalibrator_cfg.py b/CondTools/SiStrip/test/SiStripNoiseFromDBMiscalibrator_cfg.py index ddbd9e5c3c33b..d576ae21d2ce4 100644 --- a/CondTools/SiStrip/test/SiStripNoiseFromDBMiscalibrator_cfg.py +++ b/CondTools/SiStrip/test/SiStripNoiseFromDBMiscalibrator_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing import copy diff --git a/CondTools/SiStrip/test/SiStripNoisesAndBadCompsChecker_cfg.py b/CondTools/SiStrip/test/SiStripNoisesAndBadCompsChecker_cfg.py index e71f29c1dbded..340bf468f6315 100644 --- a/CondTools/SiStrip/test/SiStripNoisesAndBadCompsChecker_cfg.py +++ b/CondTools/SiStrip/test/SiStripNoisesAndBadCompsChecker_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing import copy diff --git a/RecoLuminosity/LumiDB/python/csvLumibyLSParser.py b/RecoLuminosity/LumiDB/python/csvLumibyLSParser.py index cd03ee6ff538e..605b4411a4f32 100755 --- a/RecoLuminosity/LumiDB/python/csvLumibyLSParser.py +++ b/RecoLuminosity/LumiDB/python/csvLumibyLSParser.py @@ -1,4 +1,3 @@ -from __future__ import print_function # Note: this is specifically to parse a .csv file generated from a command like # pixelLumiCalc.py lumibyls -i json_DCSONLY_pp.txt --hltpath "HLT_Photon75_CaloIdVL_IsoL*" -o myHLTtest.out # format: Run,LS,HLTpath,L1bit,HLTpresc,L1presc,Recorded(/ub),Effective(/ub) diff --git a/RecoLuminosity/LumiDB/python/pileupParser.py b/RecoLuminosity/LumiDB/python/pileupParser.py index 6d50fcc03bceb..4194e385f294f 100755 --- a/RecoLuminosity/LumiDB/python/pileupParser.py +++ b/RecoLuminosity/LumiDB/python/pileupParser.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -from __future__ import print_function import json class pileupParser(object): def __init__(self,selectStr): diff --git a/RecoLuminosity/LumiDB/python/selectionParser.py b/RecoLuminosity/LumiDB/python/selectionParser.py index 1a3e70167f479..d29ab3bceda82 100644 --- a/RecoLuminosity/LumiDB/python/selectionParser.py +++ b/RecoLuminosity/LumiDB/python/selectionParser.py @@ -1,4 +1,3 @@ -from __future__ import print_function from builtins import range import json class selectionParser(object): diff --git a/RecoLuminosity/LumiDB/scripts/makePileupJSON.py b/RecoLuminosity/LumiDB/scripts/makePileupJSON.py index b2e3c1fc57d1f..5bd02ea247c0e 100755 --- a/RecoLuminosity/LumiDB/scripts/makePileupJSON.py +++ b/RecoLuminosity/LumiDB/scripts/makePileupJSON.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -from __future__ import print_function import argparse import RecoLuminosity.LumiDB.LumiConstants as LumiConstants import re diff --git a/RecoLuminosity/LumiDB/scripts/pileupCalc.py b/RecoLuminosity/LumiDB/scripts/pileupCalc.py index 60740decba23e..232b3b0802a13 100755 --- a/RecoLuminosity/LumiDB/scripts/pileupCalc.py +++ b/RecoLuminosity/LumiDB/scripts/pileupCalc.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -from __future__ import print_function from builtins import range VERSION='1.00' import os, sys, time diff --git a/RecoLuminosity/LumiDB/scripts/pileupReCalc_HLTpaths.py b/RecoLuminosity/LumiDB/scripts/pileupReCalc_HLTpaths.py index beb6fd6598ee3..0264b80962433 100755 --- a/RecoLuminosity/LumiDB/scripts/pileupReCalc_HLTpaths.py +++ b/RecoLuminosity/LumiDB/scripts/pileupReCalc_HLTpaths.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -from __future__ import print_function VERSION='1.00' import os,sys,time import optparse diff --git a/RecoLuminosity/LumiDB/scripts/pileupReCalc_Lumis.py b/RecoLuminosity/LumiDB/scripts/pileupReCalc_Lumis.py index f290faf45b00e..c9b28a4ab8e18 100755 --- a/RecoLuminosity/LumiDB/scripts/pileupReCalc_Lumis.py +++ b/RecoLuminosity/LumiDB/scripts/pileupReCalc_Lumis.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -from __future__ import print_function VERSION='1.00' import os,sys,time import optparse