Skip to content

Commit a6b8a1a

Browse files
committed
use next()
1 parent cbbbb42 commit a6b8a1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/search/management/commands/reindex_elasticsearch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def _get_indexing_tasks(app_label, model_name, index_name, queryset, document_cl
3434

3535
try:
3636
for _ in range(chunk_size):
37-
objects_id.append(qs_iterator.__next__().pk)
37+
objects_id.append(next(qs_iterator).pk)
3838
except StopIteration:
3939
is_iterator_empty = True
4040

0 commit comments

Comments
 (0)