more 2to3 fallout

This commit is contained in:
2019-12-16 19:42:47 +01:00
parent 83a43a1897
commit 17083f186d
2 changed files with 63 additions and 56 deletions
+5 -1
View File
@@ -13,7 +13,7 @@ num = 0
MAXRTTS = 10
DEBUG=1
DEBUG=2
def log(host, m):
if DEBUG:
@@ -335,6 +335,8 @@ class Host:
def buildhosttable(self, short=False):
if DEBUG > 1:
print("DBG buildhosttable: start")
res = []
res.append('<table id="ntable" class="sortable">')
res.append(ubHost.htmltable('th', ubHost.headerdict(), short))
@@ -344,6 +346,8 @@ class Host:
for h in hosts_sorted:
res.append(ubHost.htmltable('td', Host.hosts[h].statedict(), short))
res.append("</table>")
if DEBUG > 1:
print("DBG buildhosttable: %s" % res)
return res