From 6a83e2f06b33144868793704728b99424a6437e7 Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Tue, 1 Mar 2022 19:25:04 +0100 Subject: [PATCH] [ANALYSIS] Update all the scripts to use python3 --- PhysicsTools/FWLite/scripts/newFWLiteAna.py | 2 +- PhysicsTools/Heppy/scripts/cmsBatch.py | 2 +- PhysicsTools/Heppy/scripts/cmsStageWithFailover.py | 2 +- PhysicsTools/Heppy/scripts/heppy_report.py | 2 +- PhysicsTools/HeppyCore/python/utils/das.py | 2 +- PhysicsTools/HeppyCore/python/utils/dataset.py | 2 +- PhysicsTools/HeppyCore/python/utils/edmIntegrityCheck.py | 2 +- PhysicsTools/HeppyCore/scripts/das.py | 2 +- PhysicsTools/HeppyCore/scripts/dataset.py | 2 +- PhysicsTools/HeppyCore/scripts/edmIntegrityCheck.py | 2 +- PhysicsTools/HeppyCore/scripts/heppy_batch.py | 2 +- PhysicsTools/HeppyCore/scripts/heppy_check.py | 2 +- PhysicsTools/HeppyCore/scripts/heppy_hadd.py | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/PhysicsTools/FWLite/scripts/newFWLiteAna.py b/PhysicsTools/FWLite/scripts/newFWLiteAna.py index b0fc89f464fbf..b8a126a37f244 100755 --- a/PhysicsTools/FWLite/scripts/newFWLiteAna.py +++ b/PhysicsTools/FWLite/scripts/newFWLiteAna.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 from __future__ import print_function import optparse diff --git a/PhysicsTools/Heppy/scripts/cmsBatch.py b/PhysicsTools/Heppy/scripts/cmsBatch.py index 770e3df20f92c..5e3151ef59ec9 100755 --- a/PhysicsTools/Heppy/scripts/cmsBatch.py +++ b/PhysicsTools/Heppy/scripts/cmsBatch.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Colin # batch mode for cmsRun, March 2009 diff --git a/PhysicsTools/Heppy/scripts/cmsStageWithFailover.py b/PhysicsTools/Heppy/scripts/cmsStageWithFailover.py index 9fa2f37a856b4..925654979dc5d 100755 --- a/PhysicsTools/Heppy/scripts/cmsStageWithFailover.py +++ b/PhysicsTools/Heppy/scripts/cmsStageWithFailover.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #this script runs cmsStage multiple times in the case where it failes for some reason diff --git a/PhysicsTools/Heppy/scripts/heppy_report.py b/PhysicsTools/Heppy/scripts/heppy_report.py index 08e4db6c0eafe..ff63e2e5df708 100755 --- a/PhysicsTools/Heppy/scripts/heppy_report.py +++ b/PhysicsTools/Heppy/scripts/heppy_report.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function from builtins import range from optparse import OptionParser diff --git a/PhysicsTools/HeppyCore/python/utils/das.py b/PhysicsTools/HeppyCore/python/utils/das.py index 3aab36b3a94ad..f59cb70d40a31 100644 --- a/PhysicsTools/HeppyCore/python/utils/das.py +++ b/PhysicsTools/HeppyCore/python/utils/das.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #pylint: disable-msg=C0301,C0103 """ diff --git a/PhysicsTools/HeppyCore/python/utils/dataset.py b/PhysicsTools/HeppyCore/python/utils/dataset.py index 5bd37e424d5d3..8d057d403bc5e 100644 --- a/PhysicsTools/HeppyCore/python/utils/dataset.py +++ b/PhysicsTools/HeppyCore/python/utils/dataset.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function from __future__ import absolute_import diff --git a/PhysicsTools/HeppyCore/python/utils/edmIntegrityCheck.py b/PhysicsTools/HeppyCore/python/utils/edmIntegrityCheck.py index cf7595e1a5b99..ca965568a3e08 100644 --- a/PhysicsTools/HeppyCore/python/utils/edmIntegrityCheck.py +++ b/PhysicsTools/HeppyCore/python/utils/edmIntegrityCheck.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Classes to check that a set of ROOT files are OK and publish a report """ diff --git a/PhysicsTools/HeppyCore/scripts/das.py b/PhysicsTools/HeppyCore/scripts/das.py index bbde8fa7a0fa9..1340117611b2e 100755 --- a/PhysicsTools/HeppyCore/scripts/das.py +++ b/PhysicsTools/HeppyCore/scripts/das.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from PhysicsTools.HeppyCore.utils.das import * diff --git a/PhysicsTools/HeppyCore/scripts/dataset.py b/PhysicsTools/HeppyCore/scripts/dataset.py index 6005815176427..cff0482fc268f 100755 --- a/PhysicsTools/HeppyCore/scripts/dataset.py +++ b/PhysicsTools/HeppyCore/scripts/dataset.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import pprint diff --git a/PhysicsTools/HeppyCore/scripts/edmIntegrityCheck.py b/PhysicsTools/HeppyCore/scripts/edmIntegrityCheck.py index ee0e5fca0d8cd..28f7765cf5810 100755 --- a/PhysicsTools/HeppyCore/scripts/edmIntegrityCheck.py +++ b/PhysicsTools/HeppyCore/scripts/edmIntegrityCheck.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function from PhysicsTools.HeppyCore.utils.edmIntegrityCheck import PublishToFileSystem, IntegrityCheck diff --git a/PhysicsTools/HeppyCore/scripts/heppy_batch.py b/PhysicsTools/HeppyCore/scripts/heppy_batch.py index 084a35a46de6f..93c8dc51d0fac 100755 --- a/PhysicsTools/HeppyCore/scripts/heppy_batch.py +++ b/PhysicsTools/HeppyCore/scripts/heppy_batch.py @@ -1,4 +1,4 @@ -#!/bin/env python +#!/usr/bin/env python3 from __future__ import print_function from builtins import range diff --git a/PhysicsTools/HeppyCore/scripts/heppy_check.py b/PhysicsTools/HeppyCore/scripts/heppy_check.py index 274d2a7dedb4e..66d4fad81a54f 100755 --- a/PhysicsTools/HeppyCore/scripts/heppy_check.py +++ b/PhysicsTools/HeppyCore/scripts/heppy_check.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (C) 2014 Colin Bernet # https://github.com/cbernet/heppy/blob/master/LICENSE diff --git a/PhysicsTools/HeppyCore/scripts/heppy_hadd.py b/PhysicsTools/HeppyCore/scripts/heppy_hadd.py index 3b9b752023942..faf2ef406f954 100755 --- a/PhysicsTools/HeppyCore/scripts/heppy_hadd.py +++ b/PhysicsTools/HeppyCore/scripts/heppy_hadd.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (C) 2014 Colin Bernet # https://github.com/cbernet/heppy/blob/master/LICENSE