From 2c224d45e6ada796acac8c5d60269adb4cde1ab9 Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Fri, 22 Nov 2024 18:18:29 +0100 Subject: [PATCH] [MISC2] py2/3 compatibility:drop use of __future__ --- FastSimulation/ParticleDecay/python/TestPythiaDecays_cfg.py | 1 - FastSimulation/Validation/test/trackingPerformanceValidation.py | 1 - Fireworks/Geometry/python/dumpRecoGeometry_cfg.py | 1 - Fireworks/Geometry/python/dumpSimGeometry_cfg.py | 1 - GeneratorInterface/Herwig7Interface/scripts/parallelization.py | 1 - GeneratorInterface/LHEInterface/scripts/addLHEnumbers.py | 1 - GeneratorInterface/LHEInterface/scripts/cmsLHEtoEOSManager.py | 1 - GeneratorInterface/LHEInterface/scripts/mergeLHE.py | 1 - Geometry/TrackerCommonData/test/insertMaterial.py | 1 - Geometry/TrackerNumberingBuilder/test/dumpSimGeometry_cfg.py | 1 - HeterogeneousCore/CUDAServices/scripts/cudaPreallocate.py | 1 - 11 files changed, 11 deletions(-) diff --git a/FastSimulation/ParticleDecay/python/TestPythiaDecays_cfg.py b/FastSimulation/ParticleDecay/python/TestPythiaDecays_cfg.py index 9a95682a6fa8a..f078ccf58117a 100644 --- a/FastSimulation/ParticleDecay/python/TestPythiaDecays_cfg.py +++ b/FastSimulation/ParticleDecay/python/TestPythiaDecays_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/FastSimulation/Validation/test/trackingPerformanceValidation.py b/FastSimulation/Validation/test/trackingPerformanceValidation.py index fe76948cd3420..9ecd28c255a6b 100755 --- a/FastSimulation/Validation/test/trackingPerformanceValidation.py +++ b/FastSimulation/Validation/test/trackingPerformanceValidation.py @@ -1,6 +1,5 @@ #! /usr/bin/env python -from __future__ import print_function import os import sys import fileinput diff --git a/Fireworks/Geometry/python/dumpRecoGeometry_cfg.py b/Fireworks/Geometry/python/dumpRecoGeometry_cfg.py index 0fb320efd7ffa..6e04bac80d024 100644 --- a/Fireworks/Geometry/python/dumpRecoGeometry_cfg.py +++ b/Fireworks/Geometry/python/dumpRecoGeometry_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms import sys, os import FWCore.ParameterSet.VarParsing as VarParsing diff --git a/Fireworks/Geometry/python/dumpSimGeometry_cfg.py b/Fireworks/Geometry/python/dumpSimGeometry_cfg.py index 927436ac56d24..4885faa4f3a3a 100644 --- a/Fireworks/Geometry/python/dumpSimGeometry_cfg.py +++ b/Fireworks/Geometry/python/dumpSimGeometry_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms import sys, os import FWCore.ParameterSet.VarParsing as VarParsing diff --git a/GeneratorInterface/Herwig7Interface/scripts/parallelization.py b/GeneratorInterface/Herwig7Interface/scripts/parallelization.py index 5c605b20ed314..0231f9fda6af4 100755 --- a/GeneratorInterface/Herwig7Interface/scripts/parallelization.py +++ b/GeneratorInterface/Herwig7Interface/scripts/parallelization.py @@ -38,7 +38,6 @@ # Author: Dominik Beutel -from __future__ import print_function import argparse import sys import os diff --git a/GeneratorInterface/LHEInterface/scripts/addLHEnumbers.py b/GeneratorInterface/LHEInterface/scripts/addLHEnumbers.py index b4d95458b8550..e10215f43d921 100755 --- a/GeneratorInterface/LHEInterface/scripts/addLHEnumbers.py +++ b/GeneratorInterface/LHEInterface/scripts/addLHEnumbers.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import logging import argparse import sys diff --git a/GeneratorInterface/LHEInterface/scripts/cmsLHEtoEOSManager.py b/GeneratorInterface/LHEInterface/scripts/cmsLHEtoEOSManager.py index c55d63b03d143..db1ba8254e5e4 100755 --- a/GeneratorInterface/LHEInterface/scripts/cmsLHEtoEOSManager.py +++ b/GeneratorInterface/LHEInterface/scripts/cmsLHEtoEOSManager.py @@ -8,7 +8,6 @@ """ -from __future__ import print_function print('Starting cmsLHEtoEOSManager.py') __version__ = "$Revision: 1.13 $" diff --git a/GeneratorInterface/LHEInterface/scripts/mergeLHE.py b/GeneratorInterface/LHEInterface/scripts/mergeLHE.py index b61925363d2c9..910424a12bb4b 100755 --- a/GeneratorInterface/LHEInterface/scripts/mergeLHE.py +++ b/GeneratorInterface/LHEInterface/scripts/mergeLHE.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import logging import argparse import math diff --git a/Geometry/TrackerCommonData/test/insertMaterial.py b/Geometry/TrackerCommonData/test/insertMaterial.py index a3e661fe3bf12..e03ad586526d1 100755 --- a/Geometry/TrackerCommonData/test/insertMaterial.py +++ b/Geometry/TrackerCommonData/test/insertMaterial.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -from __future__ import print_function import sys import xml.dom.minidom import math diff --git a/Geometry/TrackerNumberingBuilder/test/dumpSimGeometry_cfg.py b/Geometry/TrackerNumberingBuilder/test/dumpSimGeometry_cfg.py index bf3e25341d2e6..02cf1e83acb90 100644 --- a/Geometry/TrackerNumberingBuilder/test/dumpSimGeometry_cfg.py +++ b/Geometry/TrackerNumberingBuilder/test/dumpSimGeometry_cfg.py @@ -1,4 +1,3 @@ -from __future__ import print_function import FWCore.ParameterSet.Config as cms import sys import FWCore.ParameterSet.VarParsing as VarParsing diff --git a/HeterogeneousCore/CUDAServices/scripts/cudaPreallocate.py b/HeterogeneousCore/CUDAServices/scripts/cudaPreallocate.py index 462b4f528ecde..8777dabe0af64 100755 --- a/HeterogeneousCore/CUDAServices/scripts/cudaPreallocate.py +++ b/HeterogeneousCore/CUDAServices/scripts/cudaPreallocate.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -from __future__ import print_function import re import sys import argparse