refactor: replace percent formatting with format specifiers

This commit is contained in:
Mark Paronyan committed 2026-10-01 19:57:47 +03:00
1 parent 06899c92fc
commit 95ada23395
5 files changed
+6 -6

No files matched your search

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