Browse Source

Merge pull request #20 from scambra/patch-1

Fix for python3
master
Filip Pytloun 5 years ago
parent
commit
04f2396174
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      _modules/iptables_extra.py

+ 1
- 1
_modules/iptables_extra.py View File

try: try:
tables_list = Popen(cmd, shell=True, stdout=PIPE) tables_list = Popen(cmd, shell=True, stdout=PIPE)
while True: while True:
line = tables_list.stdout.readline()
line = tables_list.stdout.readline().decode()
if line != '': if line != '':
if line[0] == "*": if line[0] == "*":
tables.append(line.rstrip()[1:]) tables.append(line.rstrip()[1:])

Loading…
Cancel
Save