Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RECONSTRUCTION] py2/3 compatibility:drop use of __future__ #46765

Merged
merged 1 commit into from
Nov 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion CommonTools/ParticleFlow/test/PF2PAT_cfg.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
# official example for PF2PAT

import FWCore.ParameterSet.Config as cms
Expand Down
1 change: 0 additions & 1 deletion EventFilter/CSCRawToDigi/test/testCSCDigi2Raw_cfg.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function

import FWCore.ParameterSet.Config as cms
from FWCore.ParameterSet.VarParsing import VarParsing
Expand Down
1 change: 0 additions & 1 deletion EventFilter/HcalRawToDigi/test/GetBadEvents.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
Jeff Temple
Oct. 19, 2012
'''
from __future__ import print_function

import sys,os,string
from optparse import OptionParser
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import FWCore.ParameterSet.Config as cms

Mode = str("ZS") # Options: "ZS", "VR", "PR", "FK"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import FWCore.ParameterSet.Config as cms

Mode = str("ZS") # Options: "ZS", "VR", "PR", "FK"
Expand Down
1 change: 0 additions & 1 deletion JetMETCorrections/Modules/test/uploadConstants.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#! /usr/bin/env python
from __future__ import print_function
import os
import re
import sys
Expand Down
1 change: 0 additions & 1 deletion MagneticField/Engine/test/regression.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

from __future__ import print_function
import FWCore.ParameterSet.Config as cms
import FWCore.ParameterSet.VarParsing as VarParsing
import sys
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/env python

from __future__ import print_function
import os

# Path of the input tables
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import FWCore.ParameterSet.Config as cms

from CommonTools.ParticleFlow.Isolation.pfElectronIsolation_cff import *
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import FWCore.ParameterSet.Config as cms

from RecoMuon.MuonIsolation.muonPFIsolation_cff import *
Expand Down
1 change: 0 additions & 1 deletion PhysicsTools/SelectorUtils/python/VIDSelectorBase.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import ROOT
import string
import random
Expand Down
1 change: 0 additions & 1 deletion PhysicsTools/SelectorUtils/python/VIDSelectorValidator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import md5
import ROOT

Expand Down
1 change: 0 additions & 1 deletion PhysicsTools/SelectorUtils/test/pyfwlite_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#! /usr/bin/env python

# import ROOT in batch mode
from __future__ import print_function
import sys
oldargv = sys.argv[:]
sys.argv = [ '-b-' ]
Expand Down
1 change: 0 additions & 1 deletion RecoBTag/CTagging/test/test_discriminator_presence.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import ROOT
import pprint
import sys
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import FWCore.ParameterSet.Config as cms
from .pfDeepDoubleBvLJetTags_cfi import pfDeepDoubleBvLJetTags
from .pfDeepDoubleCvLJetTags_cfi import pfDeepDoubleCvLJetTags
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import FWCore.ParameterSet.Config as cms
from .pfDeepDoubleBvLJetTags_cfi import pfDeepDoubleBvLJetTags
from .pfDeepDoubleCvLJetTags_cfi import pfDeepDoubleCvLJetTags
Expand Down
1 change: 0 additions & 1 deletion RecoBTag/ONNXRuntime/test/plotDDX.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import ROOT
from DataFormats.FWLite import Handle, Events
import numpy as np
Expand Down
1 change: 0 additions & 1 deletion RecoBTag/ONNXRuntime/test/test_deep_doubleb_cfg_AOD.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.tools.helpers import getPatAlgosToolsTask

Expand Down
1 change: 0 additions & 1 deletion RecoBTag/PerformanceDB/test/plotPerformanceDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#
#____________________________________________________________

from __future__ import print_function
from builtins import range
import sys
import math
Expand Down
1 change: 0 additions & 1 deletion RecoEgamma/EgammaElectronProducers/test/dbs_discovery.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python

from __future__ import print_function
import httplib, urllib, urllib2, types, string, os, sys

# return the list of files obtained from the data discovery and based upon environnement variables:
Expand Down
1 change: 0 additions & 1 deletion RecoLocalCalo/EcalRecProducers/test/compare_csv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import sys

def compare(fn1, fn2):
Expand Down
2 changes: 0 additions & 2 deletions RecoLocalCalo/HcalRecAlgos/python/RemoveAddSevLevel.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function
from __future__ import absolute_import
import FWCore.ParameterSet.Config as cms


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import FWCore.ParameterSet.Config as cms

maxevents=10
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import FWCore.ParameterSet.Config as cms

process = cms.Process('CALIB')
Expand Down
2 changes: 0 additions & 2 deletions RecoMET/METFilters/python/GenerateHcalLaserBadRunList.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/env python

from __future__ import print_function
from __future__ import absolute_import
from builtins import range
import sys, os, string
import time
Expand Down
2 changes: 0 additions & 2 deletions RecoMET/METFilters/python/hcalLaserEventFilter_cfi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function
from __future__ import absolute_import
from RecoMET.METFilters.hcallaserevent_cfi import * # from fillDescriptions

try:
Expand Down
1 change: 0 additions & 1 deletion RecoMET/METFilters/test/filters_cfg.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
##____________________________________________________________________________||
from PhysicsTools.PatAlgos.patTemplate_cfg import *

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import absolute_import
import FWCore.ParameterSet.Config as cms

from .particleFlowCaloResolution_cfi import _timeResolutionECALBarrel, _timeResolutionECALEndcap
Expand Down
1 change: 0 additions & 1 deletion RecoTauTag/Configuration/test/compareTauVariables.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
from builtins import range
import sys
import numpy as np
Expand Down
1 change: 0 additions & 1 deletion RecoTauTag/RecoTau/python/tools/runTauIdMVA.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import FWCore.ParameterSet.Config as cms
from RecoTauTag.RecoTau.TauDiscriminatorTools import noPrediscriminants
from RecoTauTag.RecoTau.PATTauDiscriminationByMVAIsolationRun2_cff import patDiscriminationByIsolationMVArun2v1raw, patDiscriminationByIsolationMVArun2v1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import FWCore.ParameterSet.Config as cms

print()
Expand Down
1 change: 0 additions & 1 deletion TrackPropagation/RungeKutta/test/findDiff.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import sys
if len(sys.argv) !=3 :
print("usage:" + sys.argv[0] + " bla bla")
Expand Down