mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 15:21:13 +02:00
refactor: replace percent formatting with format specifiers
This commit is contained in:
5 files changed
+6
-6
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user