Skip to content

Commit d01652f

Browse files
author
Nate Bynum
committed
Fixing pyline errors. Change yield to yield from
1 parent 49bf934 commit d01652f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

elastic_datashader/elastic.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ def scan(search, use_scroll=False, size=10000):
3535
search = search.sort("_doc")
3636
if use_scroll:
3737
for hit in search.scan():
38-
yield hit
38+
yield from hit
3939
else:
4040
_search = search.params(size=size).extra(track_total_hits=False)
4141
while _search is not None:
4242
hit = None
4343
for hit in _search:
44-
yield hit
44+
yield from hit
4545
if hit is not None:
4646
_search = search.extra(search_after=list(hit.meta.sort))
4747
else:
@@ -597,7 +597,7 @@ def run_search(**kwargs):
597597

598598
while response.aggregations.comp.buckets:
599599
for b in response.aggregations.comp.buckets:
600-
yield b
600+
yield from b
601601
if "after_key" in response.aggregations.comp:
602602
after = response.aggregations.comp.after_key
603603
else:

0 commit comments

Comments
 (0)