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

chore: fix the stale fallback comment and reword docstrings flagged b… · python-zeroconf/python-zeroconf@6b26441 · GitHub

Repository navigation

Commit 6b26441

Browse files
committed
chore: fix the stale fallback comment and reword docstrings flagged by the eighth audit
1 parent cc92a76 commit 6b26441

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎src/zeroconf/_handlers/query_handler.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def _add_pointer_answers(
328328
answer_set: _AnswerWithAdditionalsType,
329329
known_answers: DNSRRSet,
330330
) -> None:
331-
"""Answer PTR/ANY question."""
331+
"""Build PTR answers with their DNS-SD recommended additionals."""
332332
for service in services:
333333
# Add recommended additional answers according to
334334
# https://tools.ietf.org/html/rfc6763#section-12.1.
@@ -371,7 +371,7 @@ def _answer_question(
371371
services: list[_ServiceInfo],
372372
known_answers: DNSRRSet,
373373
) -> _AnswerWithAdditionalsType:
374-
"""Answer a question."""
374+
"""Build the answer set for one question."""
375375
answer_set: _AnswerWithAdditionalsType = {}
376376

377377
if strategy_type == _ANSWER_STRATEGY_SERVICE_TYPE_ENUMERATION:

‎src/zeroconf/_services/info.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def load_from_cache(self, zc: Zeroconf, now: float_ | None = None) -> bool:
487487

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

493493
@name.setter

‎src/zeroconf/const.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@
139139

140140

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

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL