Fix python3 str/bytes bug in KafkaConsumer.set_topic_partitions({(topic, partition): offset, })

This commit is contained in:
Dana Powers
2015-04-04 13:57:15 -07:00
parent 46ee816327
commit e99a751081

View File

@@ -224,7 +224,7 @@ class KafkaConsumer(object):
topic = kafka_bytestring(key[0])
partition = key[1]
self._consume_topic_partition(topic, partition)
self._offsets.fetch[key] = value
self._offsets.fetch[(topic, partition)] = value
else:
raise KafkaConfigurationError('Unknown topic type (%s)' % type(arg))