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 Geometry_GEMGeometry #23983

Merged
Merged
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
5 changes: 3 additions & 2 deletions Geometry/GEMGeometry/python/gemGeometryCustoms.py
@@ -1,3 +1,4 @@
from __future__ import print_function
import FWCore.ParameterSet.Config as cms

## change the current default GEM geometry
Expand All @@ -9,10 +10,10 @@ def geomReplace(process, key, targetXML) :
mynum, originalXML = i, xml
break ## For now, to change multiple keys is not supported.
if ( mynum != -1 and originalXML != targetXML ) :
print "Changing Geometry from %s to %s"%(originalXML, targetXML)
print("Changing Geometry from %s to %s"%(originalXML, targetXML))
process.XMLIdealGeometryESSource.geomXMLFiles.remove(originalXML)
process.XMLIdealGeometryESSource.geomXMLFiles.insert(mynum,targetXML)
if ( mynum == -1) :
print "Alert! key is not found on XMLIdealGeometryESSource"
print("Alert! key is not found on XMLIdealGeometryESSource")
return process