1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-08-08 22:36:48 +02:00

ignore blank lines

This commit is contained in:
Kelly Brazil
2022-01-04 16:43:38 -08:00
parent fdcf4338e0
commit 0b6a130779

View File

@ -145,6 +145,10 @@ def parse(data, raw=False, quiet=False, ignore_exceptions=False):
linecomplete = False linecomplete = False
line = line.rstrip() line = line.rstrip()
# ignore blank lines
if line == '':
continue
# linux output # linux output
if line.startswith(' File: '): if line.startswith(' File: '):
os_type = 'linux' os_type = 'linux'