Skip to content

Commit d3ed691

Browse files
authored
Use more f-strings in zeroconf._dns (#1002)
1 parent 8e45ea9 commit d3ed691

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

zeroconf/_dns.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ def __eq__(self, other: Any) -> bool:
8989
@staticmethod
9090
def get_class_(class_: int) -> str:
9191
"""Class accessor"""
92-
return _CLASSES.get(class_, "?(%s)" % class_)
92+
return _CLASSES.get(class_, f"?({class_})")
9393

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

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

0 commit comments

Comments
 (0)