From db1cc70a2cd45943ed33520f82a773acd4f2a520 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 21 Sep 2022 21:44:59 -0400 Subject: [PATCH] djbdns/{dnscache,tinydns}.py: explicit imports from djbdns.common. --- djbdns/dnscache.py | 2 +- djbdns/tinydns.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/djbdns/dnscache.py b/djbdns/dnscache.py index 7fed987..a67060b 100644 --- a/djbdns/dnscache.py +++ b/djbdns/dnscache.py @@ -2,7 +2,7 @@ import re from typing import Optional -from djbdns.common import * +from djbdns.common import convert_ip, query_type_name, timestamp_pat # The regex to match dnscache log lines. dnscache_log_re = re.compile(fr'({timestamp_pat}) (\w+)(.*)') diff --git a/djbdns/tinydns.py b/djbdns/tinydns.py index d647156..5c4275e 100644 --- a/djbdns/tinydns.py +++ b/djbdns/tinydns.py @@ -2,7 +2,7 @@ import re from typing import Optional -from djbdns.common import * +from djbdns.common import convert_ip, query_type_name, timestamp_pat # The "hex4" pattern matches a string of four hexadecimal digits. This # is used, for example, by tinydns to encode the query type -- 2.44.2