diff --git a/testing/mozbase/moznetwork/moznetwork/moznetwork.py b/testing/mozbase/moznetwork/moznetwork/moznetwork.py index 28ebe532f46f..6f70d4c84d06 100644 --- a/testing/mozbase/moznetwork/moznetwork/moznetwork.py +++ b/testing/mozbase/moznetwork/moznetwork/moznetwork.py @@ -53,7 +53,7 @@ def _get_interface_list(): namestr = names.tobytes() else: namestr = names.tostring() - return [(namestr[i:i + 32].split(b'\0', 1)[0], + return [(six.ensure_str(namestr[i:i + 32].split(b'\0', 1)[0]), socket.inet_ntoa(namestr[i + 20:i + 24])) for i in range(0, outbytes, struct_size)]