From 7bfebdcfebf858f839d7ad4789563e098860ac34 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Thu, 30 Jun 2022 09:24:05 -0700 Subject: [PATCH] remove unnecessary list initialization --- jc/parsers/iptables.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jc/parsers/iptables.py b/jc/parsers/iptables.py index 8ec2ca9e..302bb3ff 100644 --- a/jc/parsers/iptables.py +++ b/jc/parsers/iptables.py @@ -163,7 +163,7 @@ import jc.utils class info(): """Provides parser metadata (version, author, etc.)""" - version = '1.7' + version = '1.8' description = '`iptables` command parser' author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' @@ -264,7 +264,6 @@ def parse(data, raw=False, quiet=False): continue elif line.startswith('target') or line.find('pkts') == 1 or line.startswith('num'): - headers = [] headers = [h for h in ' '.join(line.lower().strip().split()).split() if h] headers.append("options")