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

use streaming parser list to find streaming parsers

This commit is contained in:
Kelly Brazil
2022-03-03 17:37:01 -08:00
parent 7ede7be7bf
commit e49df72083

View File

@ -11,7 +11,7 @@ import shlex
import subprocess
import json
from .lib import (__version__, all_parser_info, parsers,
_parser_argument, _get_parser)
_parser_argument, _get_parser, streaming_parser_mod_list)
from . import utils
from . import tracebackplus
from .exceptions import LibraryNotInstalled, ParseError
@ -502,7 +502,7 @@ def main():
# differentiate between regular and streaming parsers
# streaming
if getattr(parser.info, 'streaming', None):
if parser_name in streaming_parser_mod_list():
result = parser.parse(sys.stdin,
raw=raw,
quiet=quiet,