more 2to3 fallout
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user