fix FormatEthAddr

This commit is contained in:
Steve Groesz 2023-12-19 19:00:40 -06:00
parent fe8aca7e6e
commit 6784647c86
1 changed files with 6 additions and 6 deletions

View File

@ -731,12 +731,12 @@ def SetEthernetAddress(s, r, eth_addr, new_eth_addr):
#-----------------------------------------------------------------------------
def FormatEthAddr(a):
return "%02X-%02X-%02X-%02X-%02X-%02X" % (ord(a[0]),
ord(a[1]),
ord(a[2]),
ord(a[3]),
ord(a[4]),
ord(a[5])
return "%02X-%02X-%02X-%02X-%02X-%02X" % (a[0],
a[1],
a[2],
a[3],
a[4],
a[5]
)