We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e45ea9 commit d3ed691Copy full SHA for d3ed691
1 file changed
zeroconf/_dns.py
@@ -89,12 +89,12 @@ def __eq__(self, other: Any) -> bool:
89
@staticmethod
90
def get_class_(class_: int) -> str:
91
"""Class accessor"""
92
- return _CLASSES.get(class_, "?(%s)" % class_)
+ return _CLASSES.get(class_, f"?({class_})")
93
94
95
def get_type(t: int) -> str:
96
"""Type accessor"""
97
- return _TYPES.get(t, "?(%s)" % t)
+ return _TYPES.get(t, f"?({t})")
98
99
def entry_to_string(self, hdr: str, other: Optional[Union[bytes, str]]) -> str:
100
"""String representation with additional information"""
0 commit comments