X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=bin%2Fdjbdns-logparse.py;h=c6b98722c6899ca0bbdf4fcbdaf86c9289492dfc;hb=f4d97fec3ea8158bcc1417d3fe129eaef5b125f1;hp=40a301200d8a84cadd253810db8684bb0b304844;hpb=02e712134a0145311d91a34a87b002322405e24c;p=djbdns-logparse.git diff --git a/bin/djbdns-logparse.py b/bin/djbdns-logparse.py index 40a3012..c6b9872 100755 --- a/bin/djbdns-logparse.py +++ b/bin/djbdns-logparse.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -""" +r""" Convert tinydns and dnscache logs to human-readable form """ @@ -80,7 +80,7 @@ query_drop_reason = { def convert_ip(ip : str) -> str: - """ + r""" Convert a hex string representing an IP address to human-readable form. @@ -218,7 +218,7 @@ def decode_type(words : list, i : int): words[i] = query_type.get(int(qt), qt) def handle_dnscache_log(line : str) -> typing.Optional[str]: - """ + r""" Handle a single log line if it matches the ``dnscache_log_re`` regex. Parameters @@ -343,7 +343,7 @@ def handle_dnscache_log(line : str) -> typing.Optional[str]: def handle_tinydns_log(line : str) -> typing.Optional[str]: - """ + r""" Handle a single log line if it matches the ``tinydns_log_re`` regex. Parameters