From: Michael Orlitzky Date: Fri, 16 Sep 2022 18:46:26 +0000 (-0400) Subject: bin/djbdns-logparse.py: make all docstrings raw to avoid surprises. X-Git-Tag: 0.0.1~30 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=f4d97fec3ea8158bcc1417d3fe129eaef5b125f1;p=djbdns-logparse.git bin/djbdns-logparse.py: make all docstrings raw to avoid surprises. --- 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