Skip to content

Commit fd391c4

Browse files
author
Eric Christensen
committed
Updating yield from back to yield.
1 parent da13b4f commit fd391c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elastic_datashader/elastic.py

Lines changed: 2 additions & 2 deletions
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 from hit
38+
yield 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 from hit
44+
yield hit
4545
if hit is not None:
4646
_search = search.extra(search_after=list(hit.meta.sort))
4747
else:

0 commit comments

Comments
 (0)