Skip to content

Commit

Permalink
Merge pull request #46767 from smuzaffar/dqm-py23-compatibility
Browse files Browse the repository at this point in the history
[DQM] py2/3 compatibility:drop use of __future__
  • Loading branch information
cmsbuild authored Nov 25, 2024
2 parents 0465781 + e462f8e commit 7d46987
Show file tree
Hide file tree
Showing 221 changed files with 0 additions and 236 deletions.
1 change: 0 additions & 1 deletion DPGAnalysis/HcalTools/scripts/cmt/das_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"""
DAS command line tool
"""
from __future__ import print_function
__author__ = "Valentin Kuznetsov"

# system modules
Expand Down
1 change: 0 additions & 1 deletion DQM/CSCMonitorModule/data/bookConverter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import xml.dom.minidom as dom
import sys, os, optparse

Expand Down
1 change: 0 additions & 1 deletion DQM/CSCMonitorModule/data/buildHistoTypes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
from Cheetah.Template import Template
from getopt import getopt
from sys import argv, exit
Expand Down
1 change: 0 additions & 1 deletion DQM/CSCMonitorModule/data/combine.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!python

from __future__ import print_function
histos={}
missing={}

Expand Down
1 change: 0 additions & 1 deletion DQM/CSCMonitorModule/test/dqm_dev_test_new_unpacker.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

process = cms.Process("CSCDQMLIVE")
Expand Down
1 change: 0 additions & 1 deletion DQM/CSCMonitorModule/test/dqm_repacker_test.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

process = cms.Process("CSCDQMLIVE")
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

def customise_for_slice_test(process, enableDigis, enableTPs):
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("DTDQM")
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
import FWCore.ParameterSet.VarParsing as VarParsing

Expand Down
1 change: 0 additions & 1 deletion DQM/DTMonitorModule/python/test/inputsource_live_cfi.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
import FWCore.ParameterSet.VarParsing as VarParsing

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

# Define here the BeamSpotOnline record name,
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
import time

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

# Define once the BeamSpotOnline record name,
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

# Define here the BeamSpotOnline record name,
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

import sys
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

# copy log4cplus.properties from >script directory< to >local<
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 DQMServices.Core.DQMEDHarvester import DQMEDHarvester

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
import sys

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
import sys

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
import sys
import os
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
import sys

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
import sys

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#-------------------------------------
# Hcal DQM Application using New DQM Sources/Clients
# Online Mode
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
# L1 Trigger DQM sequence (L1T)
#
# authors previous versions - see CVS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
# L1 Emulator DQM sequence
#
# authors previous versions - see CVS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
# L1 Trigger DQM sequence (L1T)
#
# authors previous versions - see CVS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
# L1 Emulator DQM sequence
#
# authors previous versions - see CVS
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

import sys
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

# Define once the BeamSpotOnline record name,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import sys
# $Id: physics_dqm_sourceclient-live_cfg.py,v 1.11 2012/02/13 15:09:30 lilopera Exp $

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

import sys
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
import sys

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function

import sys
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

import sys
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

import sys
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import re, os, sys
import FWCore.ParameterSet.Config as cms
from Configuration.DataProcessing.GetScenario import getScenario
Expand Down
1 change: 0 additions & 1 deletion DQM/Integration/python/clients/visualization-live_cfg.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import re, os, sys
import FWCore.ParameterSet.Config as cms
from Configuration.DataProcessing.GetScenario import getScenario
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 Configuration.StandardSequences.FrontierConditions_GlobalTag_cff import *
from Configuration.AlCa.autoCond import autoCond
Expand Down
1 change: 0 additions & 1 deletion DQM/Integration/python/config/environment_cfi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import os
import FWCore.ParameterSet.Config as cms
import configparser as ConfigParser
Expand Down
2 changes: 0 additions & 2 deletions DQM/Integration/python/config/fileinputsource_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 builtins import range
import FWCore.ParameterSet.Config as cms

Expand Down
2 changes: 0 additions & 2 deletions DQM/Integration/python/config/inputsource_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
import FWCore.ParameterSet.Config as cms
import FWCore.ParameterSet.VarParsing as VarParsing

Expand Down
2 changes: 0 additions & 2 deletions DQM/Integration/python/config/pbsource_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
import FWCore.ParameterSet.Config as cms
import FWCore.ParameterSet.VarParsing as VarParsing

Expand Down
2 changes: 0 additions & 2 deletions DQM/Integration/python/config/unittestinputsource_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 builtins import range
import FWCore.ParameterSet.Config as cms

Expand Down
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 builtins import range
import os, sys
import FWCore.ParameterSet.Config as cms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
OUTPUT is always unique in a per row bases
"""
from __future__ import print_function
################################################################################
from builtins import range
import sys, os.path
Expand Down
1 change: 0 additions & 1 deletion DQM/Integration/scripts/XMLcfgfiles/getRunAppsInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
-f Show all columns
-h show headers
"""
from __future__ import print_function
import sys
import os.path
import getopt as gop
Expand Down
1 change: 0 additions & 1 deletion DQM/Integration/scripts/XMLcfgfiles/psClasses.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function
from builtins import range
import os,subprocess,sys,re,time,random
from threading import *
Expand Down
1 change: 0 additions & 1 deletion DQM/Integration/scripts/contentValuesCheck.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function
from contentValuesLib import *

class OptionParser(optparse.OptionParser):
Expand Down
1 change: 0 additions & 1 deletion DQM/Integration/scripts/contentValuesLib.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import sys, os, optparse, re, json
import ROOT, xmlrpclib

Expand Down
1 change: 0 additions & 1 deletion DQM/Integration/scripts/contentValuesToDBS.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function
from contentValuesLib import *

class OptionParser(optparse.OptionParser):
Expand Down
1 change: 0 additions & 1 deletion DQM/Integration/scripts/contentValuesToRR.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function
from contentValuesLib import *

class OptionParser(optparse.OptionParser):
Expand Down
1 change: 0 additions & 1 deletion DQM/Integration/scripts/dqmd_manager.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function
import sys
import subprocess

Expand Down
1 change: 0 additions & 1 deletion DQM/Integration/scripts/filecollector/fileCollector.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#! /usr/bin/env python3
from __future__ import print_function
from builtins import range
import os, time, sys, glob, re, shutil, stat, smtplib, socket
from email.MIMEText import MIMEText
Expand Down
1 change: 0 additions & 1 deletion DQM/Integration/scripts/filecollector/fileCollector2.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#! /usr/bin/env python3

from __future__ import print_function
from builtins import range
import os,time,sys,zipfile,re,shutil,stat
from fcntl import lockf, LOCK_EX, LOCK_UN
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function
import os, time, sys, glob, re, smtplib, socket
from email.MIMEText import MIMEText
from traceback import print_exc, format_exc
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#! /usr/bin/env python3

from __future__ import print_function
import os, time, sys, shutil, glob, smtplib, re
from datetime import datetime
from email.MIMEText import MIMEText
Expand Down
1 change: 0 additions & 1 deletion DQM/Integration/scripts/fileregistration/fileTransfer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function
import os, time, sys, shutil, glob, smtplib, re, subprocess
import getopt as gop
import zipfile as zp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#! /usr/bin/env python3

from __future__ import print_function
import os,time,sys,shutil,glob
from sets import Set
from datetime import datetime
Expand Down
1 change: 0 additions & 1 deletion DQM/Integration/scripts/harvesting_tools/cmsHarvester.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
methods.

"""
from __future__ import print_function

###########################################################################

Expand Down
1 change: 0 additions & 1 deletion DQM/L1TMonitor/python/inputsource_file_cfi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# provide online L1 Trigger DQM input from file(s)
#
Expand Down
1 change: 0 additions & 1 deletion DQM/L1TMonitor/test/l1t_dqm_sourceclient-file_cfg.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# cfg file to run online L1 Trigger DQM
# the user can choose the environment (live, playback, file-P5, file)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# cfg file to run online L1 Trigger emulator DQM
# the user can choose the environment (live, playback, file-P5, file)
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 Configuration.Eras.Era_Run2_2018_pp_on_AA_cff import Run2_2018_pp_on_AA
Expand Down
1 change: 0 additions & 1 deletion DQM/SiStripMonitorClient/scripts/DeadROCCounter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function
from ROOT import TFile, gStyle,gPad ,TObject, TCanvas, TH1, TH1F, TH2F, TLegend, TPaletteAxis, TList, TLine, TAttLine, TF1,TAxis
import re
import sys, string
Expand Down
1 change: 0 additions & 1 deletion DQM/SiStripMonitorClient/scripts/DeadROCCounter_Phase1.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function
from ROOT import TFile, gStyle,gPad ,TObject, TCanvas, TH1, TH1F, TH2F, TLegend, TPaletteAxis, TList, TLine, TAttLine, TF1,TAxis
import re
import sys, string
Expand Down
1 change: 0 additions & 1 deletion DQM/SiStripMonitorClient/scripts/DeadROC_duringRun.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function
import sys
import string
from ROOT import TFile
Expand Down
1 change: 0 additions & 1 deletion DQM/SiStripMonitorClient/scripts/InefficientDoubleROC.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function
import sys
import math
from ROOT import gROOT, TClass, TFile
Expand Down
1 change: 0 additions & 1 deletion DQM/SiStripMonitorClient/scripts/MergeOccDeadROC.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function
import ROOT
from ROOT import TBufferFile, TH1F, TProfile, TProfile2D, TH2F, TFile, TH1D, TH2D
import re
Expand Down
1 change: 0 additions & 1 deletion DQM/SiStripMonitorClient/scripts/MergePCLDeadROC.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function
import ROOT
from ROOT import TBufferFile, TH1F, TProfile, TProfile2D, TH2F, TFile, TH1D, TH2D
import re
Expand Down
1 change: 0 additions & 1 deletion DQM/SiStripMonitorClient/scripts/MergePCLFedErr.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function
import ROOT
from ROOT import TBufferFile, TH1F, TProfile, TProfile2D, TH2F, TFile, TH1D, TH2D
import re
Expand Down
Loading

0 comments on commit 7d46987

Please sign in to comment.