Skip to content
This repository was archived by the owner on Sep 20, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sniffer/tools/sniffer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
(C) 2012, Mariano Alvira <mar@devl.org>
Expand Down Expand Up @@ -56,10 +56,10 @@
def configure_interface(port, channel):
line = ""
iface = 0
port.write(b'ifconfig\n')
port.write('ifconfig\n'.encode())
while True:
line = port.readline()
if line == '':
if line == b'':
print("Application has no network interface defined",
file=sys.stderr)
sys.exit(2)
Expand Down