From f4d97fec3ea8158bcc1417d3fe129eaef5b125f1 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 16 Sep 2022 14:46:26 -0400 Subject: [PATCH] bin/djbdns-logparse.py: make all docstrings raw to avoid surprises. --- bin/djbdns-logparse.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.44.2