Commit efa70306 authored by Oliver Majersky's avatar Oliver Majersky
Browse files

Adapt AodMetaDataReader.py to python 3.

parent 28cf8b51
......@@ -92,7 +92,7 @@ def loadDictionary():
tempPath = tempfile.mkdtemp()
try:
headerPath = os.path.join(tempPath, 'AodMetaData.h')
with open(headerPath, 'wb') as f:
with open(headerPath, 'w') as f:
writeDictionaryHeader(f)
ROOT.gROOT.LoadMacro('%s+' % headerPath)
finally:
......@@ -204,7 +204,7 @@ def dumpPlain(metaData, out):
continue
for key in sorted(folderData):
value = folderData[key]
if isinstance(value, basestring):
if isinstance(value, str):
pass
elif isinstance(value, numbers.Number):
value = repr(value)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment