mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
add helper function info
This commit is contained in:
@ -100,9 +100,11 @@ def parse(data, raw=False, quiet=False):
|
|||||||
if jc.utils.has_data(data):
|
if jc.utils.has_data(data):
|
||||||
|
|
||||||
for line in filter(None, data.splitlines()):
|
for line in filter(None, data.splitlines()):
|
||||||
#
|
|
||||||
# parse the content here
|
# parse the content here
|
||||||
#
|
# check out helper functions in jc.utils
|
||||||
|
# and jc.parsers.universal
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return raw_output if raw else _process(raw_output)
|
return raw_output if raw else _process(raw_output)
|
||||||
|
@ -119,9 +119,9 @@ def parse(data, raw=False, quiet=False, ignore_exceptions=False):
|
|||||||
try:
|
try:
|
||||||
jc.utils.streaming_line_input_type_check(line)
|
jc.utils.streaming_line_input_type_check(line)
|
||||||
|
|
||||||
#
|
# parse the content here
|
||||||
# parse the input here
|
# check out helper functions in jc.utils
|
||||||
#
|
# and jc.parsers.universal
|
||||||
|
|
||||||
if output_line:
|
if output_line:
|
||||||
yield stream_success(output_line, ignore_exceptions) if raw else stream_success(_process(output_line), ignore_exceptions)
|
yield stream_success(output_line, ignore_exceptions) if raw else stream_success(_process(output_line), ignore_exceptions)
|
||||||
|
Reference in New Issue
Block a user