bug, cannot use str when searching bytestring

This commit is contained in:
Stefan Midjich 2017-11-17 17:30:31 +01:00
parent e2b160a993
commit 64bee0b46d
1 changed files with 3 additions and 1 deletions

View File

@ -140,7 +140,9 @@ def mac_from_ip(l, arping_args, ip):
output.seek(0)
# Parse HW address from output
for line in output:
for _line in output:
line = _line.decode('utf-8')
line_start = 'Unicast reply from {ip} '.format(
ip=ip
)