Commits (2)
......@@ -1469,7 +1469,7 @@ ntpviz</a>, part of the <a href="https://www.ntpsec.org/">NTPsec project</a>
index_buffer += VizStats.table_head
for stat in stats:
if [] == stat:
continue;
continue
for sta in stat:
index_buffer += str( sta.table )
csvs.append(sta.csv)
......
......@@ -64,7 +64,7 @@ class Packet:
def VN_MODE(v, m): return ((((v) & 7) << 3) | ((m) & 0x7))
@staticmethod
def PKT_LI_VN_MODE(l,v,m): return ((((l) & 3) << 6) | Packet.VN_MODE((v), (m)))
def PKT_LI_VN_MODE(l, v, m): return ((((l) & 3) << 6) | Packet.VN_MODE((v), (m)))
def __init__(self, session, version, mode):
self.session = session # Where to get session context
......@@ -511,7 +511,7 @@ class Mode6Session:
try:
res = self.getresponse(opcode, associd, not retry)
except Mode6Exception as e:
if retry and e.message in (SERR_TIMEOUT,SERR_INCOMPLETE):
if retry and e.message in (SERR_TIMEOUT, SERR_INCOMPLETE):
retry = False
continue
else:
......
......@@ -98,8 +98,8 @@ def cmd_configure(ctx, config):
if ctx.options.disable_manpage:
ctx.env.DISABLE_MANPAGE = True
ctx.env.SBINDIR = ctx.options.sbindir
ctx.env.MANDIR = ctx.options.mandir
ctx.env.SBINDIR = ctx.options.sbindir
ctx.env.MANDIR = ctx.options.mandir
from os.path import exists
from waflib.Utils import subprocess
......