From 1926e305bb2de9fc5ace7481ee32d3eca8290169 Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Fri, 22 Nov 2024 18:18:11 +0100 Subject: [PATCH] [DQM-GEOMETRY] py2/3 compatibility:drop use of __future__ --- Validation/Geometry/python/plot_hgcal_utils.py | 1 - Validation/Geometry/test/MaterialBudget.py | 1 - Validation/Geometry/test/MaterialBudgetHGCal.py | 1 - Validation/Geometry/test/runMaterialMapForReco_fromReco.py | 1 - Validation/Geometry/test/runP_HGCal_cfg.py | 1 - Validation/Geometry/test/runP_Tracker.py | 1 - 6 files changed, 6 deletions(-) diff --git a/Validation/Geometry/python/plot_hgcal_utils.py b/Validation/Geometry/python/plot_hgcal_utils.py index 2615e387095cf..2115607e04a75 100644 --- a/Validation/Geometry/python/plot_hgcal_utils.py +++ b/Validation/Geometry/python/plot_hgcal_utils.py @@ -1,4 +1,3 @@ -from __future__ import print_function from ROOT import TStyle, kWhite, kTRUE from ROOT import gROOT, gStyle from ROOT import kGray, kAzure, kMagenta, kOrange, kWhite diff --git a/Validation/Geometry/test/MaterialBudget.py b/Validation/Geometry/test/MaterialBudget.py index 385332cab3ce6..0b6deb2199627 100644 --- a/Validation/Geometry/test/MaterialBudget.py +++ b/Validation/Geometry/test/MaterialBudget.py @@ -2,7 +2,6 @@ # Pure trick to start ROOT in batch mode, pass this only option to it # and the rest of the command line options to this code. -from __future__ import print_function import sys oldargv = sys.argv[:] sys.argv = [ '-b-' ] diff --git a/Validation/Geometry/test/MaterialBudgetHGCal.py b/Validation/Geometry/test/MaterialBudgetHGCal.py index 9e2d2212a6501..3250000a61da6 100644 --- a/Validation/Geometry/test/MaterialBudgetHGCal.py +++ b/Validation/Geometry/test/MaterialBudgetHGCal.py @@ -2,7 +2,6 @@ # Pure trick to start ROOT in batch mode, pass this only option to it # and the rest of the command line options to this code. -from __future__ import print_function import sys import numpy as np import pandas as pd diff --git a/Validation/Geometry/test/runMaterialMapForReco_fromReco.py b/Validation/Geometry/test/runMaterialMapForReco_fromReco.py index c3e801061359e..a9268b259009a 100644 --- a/Validation/Geometry/test/runMaterialMapForReco_fromReco.py +++ b/Validation/Geometry/test/runMaterialMapForReco_fromReco.py @@ -1,4 +1,3 @@ -from __future__ import print_function # Auto generated configuration file # using: # Revision: 1.19 diff --git a/Validation/Geometry/test/runP_HGCal_cfg.py b/Validation/Geometry/test/runP_HGCal_cfg.py index bec9853d49e76..7f477cf55baf5 100644 --- a/Validation/Geometry/test/runP_HGCal_cfg.py +++ b/Validation/Geometry/test/runP_HGCal_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function # In order to produce everything that you need in one go, use the command: # # for t in {'BeamPipe','Tracker','PixBar','PixFwdMinus','PixFwdPlus','TIB','TOB','TIDB','TIDF','TEC','TkStrct','InnerServices'}; do cmsRun runP_Tracker_cfg.py geom=XYZ label=$t >& /dev/null &; done diff --git a/Validation/Geometry/test/runP_Tracker.py b/Validation/Geometry/test/runP_Tracker.py index 93541b0b81e54..d237d10fb589d 100644 --- a/Validation/Geometry/test/runP_Tracker.py +++ b/Validation/Geometry/test/runP_Tracker.py @@ -2,7 +2,6 @@ # # for t in {'BeamPipe','Tracker','PixBar','PixFwdMinus','PixFwdPlus','TIB','TOB','TIDB','TIDF','TEC','TkStrct','InnerServices'}; do python3 runP_Tracker.py geom=XYZ label=$t >& /dev/null &; done -from __future__ import print_function import FWCore.ParameterSet.Config as cms from FWCore.ParameterSet.VarParsing import VarParsing import sys, re