Skip to content

Commit

Permalink
Split DNSOutgoing/DNSIncoming/DNSMessage into zeroconf._protocol (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Jun 17, 2021
1 parent c368e1c commit f39bde0
Show file tree
Hide file tree
Showing 8 changed files with 1,379 additions and 1,315 deletions.
695 changes: 2 additions & 693 deletions tests/test_dns.py

Large diffs are not rendered by default.

722 changes: 722 additions & 0 deletions tests/test_protocol.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions zeroconf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
DNSAddress,
DNSEntry,
DNSHinfo,
DNSIncoming,
DNSOutgoing,
DNSPointer,
DNSQuestion,
DNSRecord,
Expand All @@ -46,6 +44,7 @@
NonUniqueNameException,
ServiceNameAlreadyRegistered,
)
from ._protocol import DNSIncoming, DNSOutgoing # noqa # import needed for backwards compat
from ._services import ( # noqa # import needed for backwards compat
instance_name_from_service_info,
Signal,
Expand Down Expand Up @@ -81,6 +80,7 @@

__all__ = [
"__version__",
"DNSOutgoing",
"Zeroconf",
"ServiceInfo",
"ServiceBrowser",
Expand Down
3 changes: 2 additions & 1 deletion zeroconf/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@
from typing import Dict, List, Optional, Tuple, Type, Union, cast

from ._cache import DNSCache
from ._dns import DNSIncoming, DNSOutgoing, DNSQuestion
from ._dns import DNSQuestion
from ._exceptions import NonUniqueNameException
from ._handlers import QueryHandler, RecordManager
from ._logger import QuietLogger, log
from ._protocol import DNSIncoming, DNSOutgoing
from ._services import (
RecordUpdateListener,
ServiceBrowser,
Expand Down
Loading

0 comments on commit f39bde0

Please sign in to comment.