refactor: use f-strings in remaining modules, scripts and tests

This commit is contained in:
Mark Paronyan committed 2026-10-03 19:44:02 +03:00
1 parent be943fcdf3
commit 3135c8b7e3
12 files changed
+55 -78

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ def int_to_macaddress(integer):
"""
Convert an integer to a mac address
"""
return ":".join(textwrap.wrap("{:012x}".format(integer), width=2))
return ":".join(textwrap.wrap(f"{integer:012x}", width=2))
def parse_version(version):