summaryrefslogtreecommitdiff
path: root/kafka/client.py
diff options
context:
space:
mode:
authorMark Roberts <wizzat@gmail.com>2015-02-09 10:19:24 -0800
committerMark Roberts <wizzat@gmail.com>2015-02-09 10:19:24 -0800
commit3ab9a42fcf43466f233068585f47154fbd34760b (patch)
tree8a3d9c1cd24364bff7e157c3d95d1a17fd78fe71 /kafka/client.py
parentf206a4bbf0b0e39cf13c7c5918a99abc085d004d (diff)
parentcc6e8bbb22dc592224757d96579867c58b975803 (diff)
downloadkafka-python-3ab9a42fcf43466f233068585f47154fbd34760b.tar.gz
Merge pull request #315 from dpkp/sorted_partition_ids
Always return sorted partition ids in client.get_partition_ids_for_topic()
Diffstat (limited to 'kafka/client.py')
-rw-r--r--kafka/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kafka/client.py b/kafka/client.py
index 7b04e71..f8fe555 100644
--- a/kafka/client.py
+++ b/kafka/client.py
@@ -261,7 +261,7 @@ class KafkaClient(object):
if topic not in self.topic_partitions:
return None
- return list(self.topic_partitions[topic])
+ return sorted(list(self.topic_partitions[topic]))
def ensure_topic_exists(self, topic, timeout = 30):
start_time = time.time()