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:
@ -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:
|
||||
|
Reference in New Issue
Block a user