From 05ac4b28b7daf062a36f4e5a59476c1b79970c4d Mon Sep 17 00:00:00 2001 From: scott snyder <sss@karma> Date: Wed, 17 Apr 2019 15:39:15 +0200 Subject: [PATCH] OutputStreamAthenaPool: Initial python3 port. Initial python3 port. Not yet trying to get everything working; only what's needed for basic athena/configuration jobs. --- .../python/OutputStreamAthenaPool.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Database/AthenaPOOL/OutputStreamAthenaPool/python/OutputStreamAthenaPool.py b/Database/AthenaPOOL/OutputStreamAthenaPool/python/OutputStreamAthenaPool.py index b68fae5d90d..6c1bf5ad990 100644 --- a/Database/AthenaPOOL/OutputStreamAthenaPool/python/OutputStreamAthenaPool.py +++ b/Database/AthenaPOOL/OutputStreamAthenaPool/python/OutputStreamAthenaPool.py @@ -6,6 +6,8 @@ ## $Id: OutputStreamAthenaPool.py,v 1.10 2009-04-27 18:19:34 gemmeren Exp $ ############################################################### +from __future__ import print_function + from AthenaCommon.AppMgr import theApp from AthenaCommon.AppMgr import ServiceMgr as svcMgr from AthenaServices.AthenaServicesConf import AthenaOutputStream @@ -37,9 +39,8 @@ def createOutputStream( streamName, fileName = "", asAlg = False, noTag = False, # Tell tool to pick it up outputStream.WritingTool.AttributeListKey=key # build eventinfo attribute list - from OutputStreamAthenaPoolConf import EventInfoAttListTool + from .OutputStreamAthenaPoolConf import EventInfoAttListTool, EventInfoTagBuilder svcMgr.ToolSvc += EventInfoAttListTool() - from OutputStreamAthenaPoolConf import EventInfoTagBuilder EventInfoTagBuilder = EventInfoTagBuilder(AttributeList=key, EventInfoKey=eventInfoKey) topSequence += EventInfoTagBuilder @@ -51,7 +52,7 @@ def createOutputStream( streamName, fileName = "", asAlg = False, noTag = False, if fileName != "": outputStream.OutputFile = fileName - from OutputStreamAthenaPoolConf import MakeEventStreamInfo + from .OutputStreamAthenaPoolConf import MakeEventStreamInfo streamInfoTool = MakeEventStreamInfo( streamName + "_MakeEventStreamInfo" ) streamInfoTool.Key = streamName outputStream.HelperTools = [ streamInfoTool ] -- GitLab