FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore: fix the stale fallback comment and reword docstrings flagged by the eighth audit by bdraco · Pull Request #1891 · python-zeroconf/python-zeroconf · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (3) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 2 additions & 2 deletions src/zeroconf/_handlers/query_handler.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def _add_pointer_answers(
answer_set: _AnswerWithAdditionalsType,
known_answers: DNSRRSet,
) -> None:
"""Answer PTR/ANY question."""
"""Build PTR answers with their DNS-SD recommended additionals."""
for service in services:
# Add recommended additional answers according to
# https://tools.ietf.org/html/rfc6763#section-12.1.
Expand Down Expand Up @@ -371,7 +371,7 @@ def _answer_question(
services: list[_ServiceInfo],
known_answers: DNSRRSet,
) -> _AnswerWithAdditionalsType:
"""Answer a question."""
"""Build the answer set for one question."""
answer_set: _AnswerWithAdditionalsType = {}

if strategy_type == _ANSWER_STRATEGY_SERVICE_TYPE_ENUMERATION:
Expand Down
2 changes: 1 addition & 1 deletion src/zeroconf/_services/info.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def load_from_cache(self, zc: Zeroconf, now: float_ | None = None) -> bool:

@property
def name(self) -> str:
"""Fully qualified name of this service instance."""
"""The complete instance name, including the type and domain."""
return self._name

@name.setter
Expand Down
4 changes: 2 additions & 2 deletions src/zeroconf/const.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@


# Wire values mapped to short human readable names, used only for reprs
# and debug logging; lookups fall back to "?(value)" at the call sites.
# Sorted by mnemonic.
# and debug logging; _type_label and _class_label in _dns.py supply the
# unknown-value fallback. Sorted by mnemonic.
_CLASSES = {
_CLASS_ANY: "any",
_CLASS_CH: "ch",
Expand Down
Loading

Back | FazBrowse Home | New Git URL