Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HLT] py2/3 compatibility:drop use of __future__ #46773

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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