From e49df7208377ab34a74240a06f35f17fee4b8203 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Thu, 3 Mar 2022 17:37:01 -0800 Subject: [PATCH] use streaming parser list to find streaming parsers --- jc/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jc/cli.py b/jc/cli.py index b3644720..02359ec7 100644 --- a/jc/cli.py +++ b/jc/cli.py @@ -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,