Skip to content
Snippets Groups Projects
Commit 7a4bf722 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

AthenaPoolUtilities: flake8 fixes

parent e87d4fe4
No related branches found
No related tags found
No related merge requests found
...@@ -6,10 +6,8 @@ import subprocess ...@@ -6,10 +6,8 @@ import subprocess
from PyDumper.Dumpers import get_dumper_fct from PyDumper.Dumpers import get_dumper_fct
from AthenaPython import PyAthena from AthenaPython import PyAthena
from PyUtils.fprint import fprintln from PyUtils.fprint import fprintln
import builtins
printfunc = getattr(builtins,'print')
if (not 'ATLAS_REFERENCE_TAG' in globals() and if ('ATLAS_REFERENCE_TAG' not in globals() and
'ATLAS_REFERENCE_TAG' in os.environ): 'ATLAS_REFERENCE_TAG' in os.environ):
ATLAS_REFERENCE_TAG = os.environ['ATLAS_REFERENCE_TAG'] ATLAS_REFERENCE_TAG = os.environ['ATLAS_REFERENCE_TAG']
...@@ -19,7 +17,7 @@ def find_file (fname,refPaths): ...@@ -19,7 +17,7 @@ def find_file (fname,refPaths):
path = os.path.join (p, fname) path = os.path.join (p, fname)
if os.path.exists (path): if os.path.exists (path):
return path return path
printfunc ('ERROR: Cannot find file: ', fname) print ('ERROR: Cannot find file: ', fname)
return None return None
...@@ -81,10 +79,10 @@ class Dumper (PyAthena.Alg): ...@@ -81,10 +79,10 @@ class Dumper (PyAthena.Alg):
if ret != 0: if ret != 0:
newvars = checknewvars (output) newvars = checknewvars (output)
if newvars: if newvars:
printfunc ('WARNING: new xAOD variables ', newvars) print ('WARNING: new xAOD variables ', newvars)
else: else:
printfunc ('ERROR running diff with reference') print ('ERROR running diff with reference')
printfunc (output) print (output)
return 1 return 1
def execute (self): def execute (self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment