mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
refactor: use f-strings in remaining modules, scripts and tests
This commit is contained in:
12 files changed
+55
-78
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user