disable pylint warning caused by use of python3 pylint

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
This commit is contained in:
Rich Megginson 2024-06-03 13:06:01 -06:00 committed by Richard Megginson
parent b2fdc87366
commit 0f3f437e72

View file

@ -51,7 +51,9 @@ def get_perm_addr(ifname):
try:
res = ecmd.tobytes()
except AttributeError: # tobytes() is not available in python2
# pylint: disable=no-member
res = ecmd.tostring()
# pylint: enable=no-member
unused, size, perm_addr = struct.unpack("II%is" % MAX_ADDR_LEN, res)
perm_addr = Util.mac_ntoa(perm_addr[:size])
except IOError: