-from re import compile
+# Don't clobber the global compile() with a named import.
+import re
+
from typing import Optional
from djbdns.common import *
# The regex to match dnscache log lines.
-dnscache_log_re = compile(fr'({timestamp_pat}) (\w+)(.*)')
+dnscache_log_re = re.compile(fr'({timestamp_pat}) (\w+)(.*)')
def decode_client(words : list, i : int):