From b3016cd85ffb9a58d38fc6c453b59fdd627c4770 Mon Sep 17 00:00:00 2001 From: Jose Guillermo Panduro Vazquez <j.panduro.vazquez@cern.ch> Date: Fri, 28 Feb 2020 18:33:18 +0100 Subject: [PATCH] Fix python3 incompatible print statements (ATR-20980) Several print statements in runHLT_standalone_run2.py were still in python2-only format. Have modified them to be python 3 compatible. Test now gets past this stage but fails due to ATR-20988. --- .../TriggerJobOpts/share/runHLT_standalone_run2.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Trigger/TriggerCommon/TriggerJobOpts/share/runHLT_standalone_run2.py b/Trigger/TriggerCommon/TriggerJobOpts/share/runHLT_standalone_run2.py index 1f0fe2d6e80..d83421415bd 100755 --- a/Trigger/TriggerCommon/TriggerJobOpts/share/runHLT_standalone_run2.py +++ b/Trigger/TriggerCommon/TriggerJobOpts/share/runHLT_standalone_run2.py @@ -151,7 +151,7 @@ for name in menuMap: if 'setupForMC' not in dir(): setupForMC=(key=='MC') - print 'Setting setupForMC = ',setupForMC + print('Setting setupForMC = ',setupForMC) if 'setupForMC' not in dir(): setupForMC=False @@ -275,10 +275,10 @@ if 'enableCostD3PD' in dir() or 'enableRateD3PD' in dir(): log.info('Setup options:') for option in defaultOptions: if option in dir(): - print ' %20s = %s' % (option,str(globals()[option])) + print(' %20s = %s' % (option,str(globals()[option]))) else: globals()[option]=defaultOptions[option] - print ' %20s = (Default) %s' % (option,str(globals()[option])) + print(' %20s = (Default) %s' % (option,str(globals()[option]))) #we don't want anything further on to depend on these flags del newMenuSetup @@ -557,5 +557,5 @@ if len(condOverride)>0: if not TriggerFlags.Online.doValidation(): # Suppress this printout in ATN tests from AthenaCommon.JobProperties import jobproperties jobproperties.print_JobProperties('tree&value') - print AlgSequence - print ServiceMgr + print(AlgSequence) + print(ServiceMgr) -- GitLab