port resultbrowser to python3

This commit is contained in:
Robin Thunig
2021-12-15 00:30:10 +01:00
parent da7af918c6
commit 4d7ccd2d86
4 changed files with 15 additions and 12 deletions

View File

@ -7,8 +7,8 @@ import sys
import os.path
from pprint import pprint
import data
import details
from . import data
from . import details
"""Get command line options"""
from optparse import OptionParser
@ -24,7 +24,7 @@ def checkConfigFile(msg, fname):
if not os.path.isfile(fname):
sys.exit("Error: '" + fname + "' not found")
else:
print msg, "->", fname
print(msg, "->", fname)
# Check sql config
sqlconfig = opts.config
@ -99,9 +99,9 @@ def reloadOverview():
return overview, objdump_exists
"""Load overview data at server startup"""
print "Loading overview data from database. This may take a while ..."
print("Loading overview data from database. This may take a while ...")
overview_data, objdump_exists = reloadOverview()
print "done."
print("done.")
## Get overview data for views.index()
def getOverview():
return overview_data