Skip to content

Commit

Permalink
[HLT] py2/3 compatibility:drop use of __future__
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Nov 22, 2024
1 parent 92333e3 commit 7cdfd60
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 22 deletions.
1 change: 0 additions & 1 deletion HLTrigger/Configuration/python/Tools/confdb.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python

from __future__ import absolute_import
import sys
import re
import os
Expand Down
1 change: 0 additions & 1 deletion HLTrigger/Configuration/scripts/edmPluginCoverage
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

# Author: Andrea 'fwyzard' Bocci <[email protected]>, Università di Pisa

from __future__ import print_function
import os, sys
import re

Expand Down
1 change: 0 additions & 1 deletion HLTrigger/HLTanalyzers/test/CreateCFGs.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env python
#

from __future__ import print_function
import sys,string,time,os

### parameters ###
Expand Down
1 change: 0 additions & 1 deletion HLTrigger/HLTanalyzers/test/CreateFileLists.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env python
#

from __future__ import print_function
import sys,string,time,os

### parameters ###
Expand Down
1 change: 0 additions & 1 deletion HLTrigger/HLTanalyzers/test/efficiency.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
### assumes QCD_Pt-.../res/ folders are in current directory ###

import glob, os, string
Expand Down
1 change: 0 additions & 1 deletion HLTrigger/HLTanalyzers/test/fixTrue.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python

from __future__ import print_function
import sys, os, string

def usage():
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
from HTMLParser import HTMLParser
from urllib2 import urlopen
import cPickle as pickle
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/usr/bin/env python
from __future__ import print_function
from __future__ import absolute_import
from .Page1Parser import Page1Parser
import sys
import os
Expand Down
2 changes: 0 additions & 2 deletions HLTrigger/Tools/python/OnlinePrescaleChecker/TablePrint.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function
from __future__ import absolute_import
import sys
from .colors import *
write = sys.stdout.write
Expand Down
2 changes: 0 additions & 2 deletions HLTrigger/Tools/python/getHLTPrescaleColumns.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function
from __future__ import absolute_import
from sys import stderr, exit
import subprocess

Expand Down
2 changes: 0 additions & 2 deletions HLTrigger/Tools/python/getHLTkey.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function
from __future__ import absolute_import
from sys import stderr, exit


Expand Down
2 changes: 0 additions & 2 deletions HLTrigger/Tools/python/getHLTprescales.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function
from __future__ import absolute_import
from sys import stderr, exit
import subprocess

Expand Down
2 changes: 0 additions & 2 deletions HLTrigger/Tools/python/makeHLTPrescaleTable.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function
from __future__ import absolute_import
from sys import stderr, exit
import subprocess, os

Expand Down
1 change: 0 additions & 1 deletion HLTrigger/Tools/python/queryRR.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

# https://twiki.cern.ch/twiki/bin/viewauth/CMS/DqmRrApi

from __future__ import absolute_import
from sys import stderr, exit
import xml.dom.minidom
from .rrapi import RRApi, RRApiError
Expand Down
1 change: 0 additions & 1 deletion HLTrigger/Tools/python/rrapi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import urllib, re, json, socket

"""
Expand Down
1 change: 0 additions & 1 deletion HLTrigger/Tools/scripts/timingPdfMaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
## Imports
############################################

from __future__ import print_function
import os, glob
import os.path
import operator
Expand Down

0 comments on commit 7cdfd60

Please sign in to comment.