Skip to content

Commit

Permalink
Merge pull request #33980 from davidlange6/dl210604
Browse files Browse the repository at this point in the history
change python to python3 in lots of scripts
  • Loading branch information
cmsbuild committed Jun 15, 2021
2 parents d602997 + de1e7dd commit 1901690
Show file tree
Hide file tree
Showing 43 changed files with 43 additions and 43 deletions.
2 changes: 1 addition & 1 deletion FWCore/Concurrency/scripts/edmStreamStallGrapher.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import print_function
from builtins import range
from itertools import groupby
Expand Down
2 changes: 1 addition & 1 deletion FWCore/MessageLogger/scripts/edmFjrDump
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import print_function
import xml.etree.ElementTree as ET
Expand Down
2 changes: 1 addition & 1 deletion FWCore/MessageLogger/scripts/edmMLParser
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

from __future__ import print_function

Expand Down
2 changes: 1 addition & 1 deletion FWCore/ParameterSet/examples/varParsingExample.py
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

from __future__ import print_function
from FWCore.ParameterSet.VarParsing import VarParsing
Expand Down
2 changes: 1 addition & 1 deletion FWCore/ParameterSet/python/Config.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

### command line options helper
from __future__ import print_function
Expand Down
2 changes: 1 addition & 1 deletion FWCore/ParameterSet/scripts/edmConfigDump
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

from __future__ import print_function
import sys
Expand Down
2 changes: 1 addition & 1 deletion FWCore/ParameterSet/scripts/edmConfigIncludeChecker
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Check needed by Martin Gruenewald for HLT studies
# This isn't intended to be an example for nice coding... ;-)
Expand Down
2 changes: 1 addition & 1 deletion FWCore/ParameterSet/scripts/edmConfigSplit
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

import sys
import os
Expand Down
2 changes: 1 addition & 1 deletion FWCore/ParameterSet/scripts/edmPythonConfigToCppValidation
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

from __future__ import print_function
from builtins import str
Expand Down
2 changes: 1 addition & 1 deletion FWCore/ParameterSet/scripts/edmPythonSearch
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

from __future__ import print_function
from FWCore.ParameterSet.TreeCrawler import getImportTree, Color
Expand Down
2 changes: 1 addition & 1 deletion FWCore/ParameterSet/scripts/edmPythonTree
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

from FWCore.ParameterSet.TreeCrawler import getImportTree
import sys, os
Expand Down
2 changes: 1 addition & 1 deletion FWCore/ParameterSet/test/comparePythonOutput.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# This compares the content of two Python files,
# ignoring trivial differences like order within
# dictionaries or escape characters
Expand Down
2 changes: 1 addition & 1 deletion FWCore/PythonUtilities/python/LumiList.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
Handle lists of lumi sections. Constuct in several different formats and filter
Expand Down
2 changes: 1 addition & 1 deletion FWCore/PythonUtilities/scripts/compareJSON.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import print_function
import sys
Expand Down
2 changes: 1 addition & 1 deletion FWCore/PythonUtilities/scripts/csv2json.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import print_function
import sys
Expand Down
2 changes: 1 addition & 1 deletion FWCore/PythonUtilities/scripts/edmDumpEventContent
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

from __future__ import print_function
from builtins import object
Expand Down
2 changes: 1 addition & 1 deletion FWCore/PythonUtilities/scripts/filterCSVwithJSON.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import print_function
import sys
Expand Down
2 changes: 1 addition & 1 deletion FWCore/PythonUtilities/scripts/filterJSON.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import print_function
import sys
Expand Down
2 changes: 1 addition & 1 deletion FWCore/PythonUtilities/scripts/fjr2json.py
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

from __future__ import print_function
from FWCore.PythonUtilities.XML2Python import xml2obj
Expand Down
2 changes: 1 addition & 1 deletion FWCore/PythonUtilities/scripts/generateEDF.py
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

from __future__ import print_function
from __future__ import division
Expand Down
2 changes: 1 addition & 1 deletion FWCore/PythonUtilities/scripts/interactivePythonTest.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import print_function
import sys
import os
Expand Down
2 changes: 1 addition & 1 deletion FWCore/PythonUtilities/scripts/mergeJSON.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import print_function
import sys
Expand Down
2 changes: 1 addition & 1 deletion FWCore/PythonUtilities/scripts/printJSON.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import print_function
import sys
Expand Down
2 changes: 1 addition & 1 deletion FWCore/Utilities/bin/edmConvertToStreamModule.py
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

from __future__ import print_function
import subprocess
Expand Down
2 changes: 1 addition & 1 deletion FWCore/Utilities/python/Enumerate.py
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

## Note: Please do not use or modify any data or functions with a
## leading underscore. If you "mess" with the internal structure,
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/PythonAnalysis/python/LumiList.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from FWCore.PythonUtilities.LumiList import LumiList as ll
import warnings
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/PythonAnalysis/python/rootplot/tree2hists.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Create ROOT Histograms from one or more ROOT TTrees or TNtuples.
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/PythonAnalysis/scripts/edmMakePhDThesis
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys, time, random

### a list of various titels. the actual one is picked randomly
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/PythonAnalysis/scripts/edmProvDiff
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# A script to compare the provenance of two input root files.
# It prints out informations about those modules which are common to the input files,
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/PythonAnalysis/scripts/rootinfo
@@ -1,3 +1,3 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from PhysicsTools.PythonAnalysis.rootplot.rootinfo import main
main()
2 changes: 1 addition & 1 deletion PhysicsTools/PythonAnalysis/scripts/rootmath
@@ -1,3 +1,3 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from PhysicsTools.PythonAnalysis.rootplot.rootmath import main
main()
2 changes: 1 addition & 1 deletion PhysicsTools/PythonAnalysis/scripts/rootplot
@@ -1,3 +1,3 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from PhysicsTools.PythonAnalysis.rootplot.core import cli_rootplot
cli_rootplot()
2 changes: 1 addition & 1 deletion PhysicsTools/PythonAnalysis/scripts/rootplotmpl
@@ -1,3 +1,3 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from PhysicsTools.PythonAnalysis.rootplot.core import cli_rootplotmpl
cli_rootplotmpl()
2 changes: 1 addition & 1 deletion PhysicsTools/PythonAnalysis/scripts/tree2hists
@@ -1,3 +1,3 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from PhysicsTools.PythonAnalysis.rootplot.tree2hists import main
main()
2 changes: 1 addition & 1 deletion PhysicsTools/Utilities/scripts/edmPickEvents.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Anzar Afaq June 17, 2008
# Oleksiy Atramentov June 21, 2008
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/Utilities/scripts/pileupDistInMC.py
@@ -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 Validation/Tools/examples/printConversionInfo.py
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

from __future__ import print_function
import ROOT
Expand Down
2 changes: 1 addition & 1 deletion Validation/Tools/scripts/diffTreeTool.py
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

from __future__ import print_function
from builtins import range
Expand Down
2 changes: 1 addition & 1 deletion Validation/Tools/scripts/edmOneToOneComparison.py
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

from __future__ import print_function
if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion Validation/Tools/scripts/runEdmFileComparison.py
@@ -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 Validation/Tools/scripts/simpleEdmComparison.py
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

from __future__ import print_function
from builtins import range
Expand Down
2 changes: 1 addition & 1 deletion Validation/Tools/scripts/summarizeEdmComparisonLogfiles.py
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

from __future__ import print_function
import optparse
Expand Down
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import print_function
from builtins import range
Expand Down

0 comments on commit 1901690

Please sign in to comment.