Skip to content

Commit

Permalink
Use backend's parse_basecoro
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rtobar committed Dec 25, 2024
1 parent 829655e commit d12a225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ijson/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d12a225

Please sign in to comment.