From d12a2254a4bdcf2690dab2087277974d2b1dd1b8 Mon Sep 17 00:00:00 2001 From: Rodrigo Tobar Date: Wed, 25 Dec 2024 00:37:02 +0800 Subject: [PATCH] Use backend's parse_basecoro This one has flown under the radar for a long time, but while inspecting some pytuple checks in the C extension it became evident we were always using the generic version instead. Signed-off-by: Rodrigo Tobar --- src/ijson/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ijson/common.py b/src/ijson/common.py index 99b8bc4..b3a5add 100644 --- a/src/ijson/common.py +++ b/src/ijson/common.py @@ -386,7 +386,7 @@ def parse(source, buf_size=64*1024, **config): ) elif is_iterable(source): return utils.coros2gen(source, - (parse_basecoro, (), {}) + (backend['parse_basecoro'], (), {}) ) raise ValueError("Unknown source type: %r" % type(source)) return parse