X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=bin%2Fdjbdns-logparse.py;h=8aa1837c3fce6f901408f73f278919666c40c105;hb=af51e4b85a27ba1b263e8371e1efeea93e90842b;hp=709de6072e6dfcb699bd6c0ed6ef1bafe989f4e8;hpb=ba7c761a0a3717dd7511e078ad5136845fa9bb2c;p=djbdns-logparse.git diff --git a/bin/djbdns-logparse.py b/bin/djbdns-logparse.py index 709de60..8aa1837 100755 --- a/bin/djbdns-logparse.py +++ b/bin/djbdns-logparse.py @@ -219,7 +219,7 @@ def handle_dnscache_log(line) -> typing.Optional[str]: ellipsis = "" length = int(response[0:2], 16) chars = [] - for i in range(1, len(response)/2): + for i in range(1, len(response)//2): chars.append(chr(int(response[2*i : (2*i)+2], 16))) words[4] = "%d:\"%s%s\"" % (length, "".join(chars), ellipsis)