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

Print function migration for CondCore_ESSources #23912

Merged
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion CondCore/ESSources/python/GlobalTag.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import print_function
import sys

from Configuration.AlCa.autoCond import aliases
Expand Down Expand Up @@ -54,7 +55,7 @@ def checkPrefix(self, inputGTParams):
""" Compares two input GTs to see if they have the same prefix. Returns the index in the internal list of GTs of the match
or -1 in case of no match. """
if inputGTParams[0][0].find("_") == -1:
print "Invalid GT name. It does not contain an _, it cannot be used for replacements."
print("Invalid GT name. It does not contain an _, it cannot be used for replacements.")
sys.exit(1)
prefix = inputGTParams[0][0].split("_")[0]
for i in range(0, len(self.gtParams)):
Expand Down
5 changes: 3 additions & 2 deletions CondCore/ESSources/test/python/load_from_globaltag_cfg.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import print_function
import FWCore.ParameterSet.Config as cms

process = cms.Process("TEST")
Expand Down Expand Up @@ -33,8 +34,8 @@
process.GlobalTag.connect = cms.string(globalTag.connect())
process.GlobalTag.globaltag = globalTag.gt()

print "Final connection string =", process.GlobalTag.connect
print "Final globalTag =", process.GlobalTag.globaltag
print("Final connection string =", process.GlobalTag.connect)
print("Final globalTag =", process.GlobalTag.globaltag)


# process.GlobalTag.connect = cms.string(connectString)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import print_function
import time

import FWCore.ParameterSet.Config as cms
Expand Down Expand Up @@ -161,6 +162,6 @@
process.schedule_().append( process.esout )

for name, module in six.iteritems(process.es_sources_()):
print "ESModules> provider:%s '%s'" % ( name, module.type_() )
print("ESModules> provider:%s '%s'" % ( name, module.type_() ))
for name, module in six.iteritems(process.es_producers_()):
print "ESModules> provider:%s '%s'" % ( name, module.type_() )
print("ESModules> provider:%s '%s'" % ( name, module.type_() ))
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import print_function
import time

import FWCore.ParameterSet.Config as cms
Expand Down Expand Up @@ -157,6 +158,6 @@
process.schedule_().append( process.esout )

for name, module in six.iteritems(process.es_sources_()):
print "ESModules> provider:%s '%s'" % ( name, module.type_() )
print("ESModules> provider:%s '%s'" % ( name, module.type_() ))
for name, module in six.iteritems(process.es_producers_()):
print "ESModules> provider:%s '%s'" % ( name, module.type_() )
print("ESModules> provider:%s '%s'" % ( name, module.type_() ))