Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions zeroconf/_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ def __eq__(self, other: Any) -> bool:
@staticmethod
def get_class_(class_: int) -> str:
"""Class accessor"""
return _CLASSES.get(class_, "?(%s)" % class_)
return _CLASSES.get(class_, f"?({class_})")

@staticmethod
def get_type(t: int) -> str:
"""Type accessor"""
return _TYPES.get(t, "?(%s)" % t)
return _TYPES.get(t, f"?({t})")

def entry_to_string(self, hdr: str, other: Optional[Union[bytes, str]]) -> str:
"""String representation with additional information"""
Expand Down