Skip to content

Commit ca57fe2

Browse files
authored
Merge pull request #1 from dpkp/master
Use six.viewitems instead of six.iteritems to avoid encoding problems (dpkp#2154)
2 parents 6f932ba + 83b7b27 commit ca57fe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kafka/coordinator/assignors/sticky/sticky_assignor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ def metadata(cls, topics):
656656
partitions_by_topic = defaultdict(list)
657657
for topic_partition in cls.member_assignment: # pylint: disable=not-an-iterable
658658
partitions_by_topic[topic_partition.topic].append(topic_partition.partition)
659-
data = StickyAssignorUserDataV1(six.iteritems(partitions_by_topic), cls.generation)
659+
data = StickyAssignorUserDataV1(six.viewitems(partitions_by_topic), cls.generation)
660660
user_data = data.encode()
661661
return ConsumerProtocolMemberMetadata(cls.version, list(topics), user_data)
662662

0 commit comments

Comments
 (0)