1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

tighten if statements

This commit is contained in:
Kelly Brazil
2019-10-23 10:27:05 -07:00
parent 56901788de
commit 802f1510eb

View File

@ -346,7 +346,7 @@ def parse(data):
continue continue
if line.find('target') == 0 or line.find('pkts') == 1: elif line.find('target') == 0 or line.find('pkts') == 1:
headers = [] headers = []
headers = [h for h in ' '.join(line.strip().split()).split() if h] headers = [h for h in ' '.join(line.strip().split()).split() if h]
headers.append("options") headers.append("options")