1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-21 00:19:42 +02:00

move global output variable inside function

This commit is contained in:
Kelly Brazil
2019-10-29 07:54:59 -07:00
parent 0691cfcab3
commit 579bef079c

View File

@ -98,8 +98,6 @@ $ sudo netstat -lpn | jc --netstat -p
"""
import string
output = []
def parse_line(entry):
output_line = {}
@ -151,6 +149,7 @@ def parse_line(entry):
def parse(data):
output = []
cleandata = data.splitlines()
for line in cleandata: