Skip to content

Commit

Permalink
Merge pull request #37108 from smuzaffar/analysis-py3-fix
Browse files Browse the repository at this point in the history
[ANALYSIS] Update all the scripts to use python3
  • Loading branch information
cmsbuild authored Mar 2, 2022
2 parents 052fbab + 6a83e2f commit ced3550
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion PhysicsTools/FWLite/scripts/newFWLiteAna.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

from __future__ import print_function
import optparse
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/Heppy/scripts/cmsBatch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# Colin
# batch mode for cmsRun, March 2009

Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/Heppy/scripts/cmsStageWithFailover.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/Heppy/scripts/heppy_report.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/HeppyCore/python/utils/das.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#pylint: disable-msg=C0301,C0103

"""
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/HeppyCore/python/utils/dataset.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import print_function
from __future__ import absolute_import
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/HeppyCore/python/utils/edmIntegrityCheck.py
Original file line number Diff line number Diff line change
@@ -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
"""
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/HeppyCore/scripts/das.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3


from PhysicsTools.HeppyCore.utils.das import *
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/HeppyCore/scripts/dataset.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import os
import pprint
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/HeppyCore/scripts/edmIntegrityCheck.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/HeppyCore/scripts/heppy_batch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/env python
#!/usr/bin/env python3

from __future__ import print_function
from builtins import range
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/HeppyCore/scripts/heppy_check.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/HeppyCore/scripts/heppy_hadd.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit ced3550

Please sign in to comment.