Skip to content

Commit 9bf52bb

Browse files
committed
Fixup fetcher deque.copy change
1 parent 949a0c7 commit 9bf52bb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

kafka/consumer/fetcher.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import collections
2+
import copy
23
import itertools
34
import logging
45
import sys
@@ -609,7 +610,7 @@ def _handle_list_offsets_response(self, future, response):
609610
def _fetchable_partitions(self):
610611
fetchable = self._subscriptions.fetchable_partitions()
611612
# do not fetch a partition if we have a pending fetch response to process
612-
# use copy.copy to avoid runtimeerror on mutation from different thread
613+
# use copy to avoid runtimeerror on mutation from different thread
613614
discard = {fetch.topic_partition for fetch in self._completed_fetches.copy()}
614615
current = self._next_partition_records
615616
if current:

0 commit comments

Comments
 (0)