summaryrefslogtreecommitdiff
path: root/kafka/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'kafka/client.py')
-rw-r--r--kafka/client.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/kafka/client.py b/kafka/client.py
index ae489e1..5fb3842 100644
--- a/kafka/client.py
+++ b/kafka/client.py
@@ -37,7 +37,9 @@ class KafkaClient(object):
##################
def _get_conn_for_broker(self, broker):
- "Get or create a connection to a broker"
+ """
+ Get or create a connection to a broker
+ """
if (broker.host, broker.port) not in self.conns:
self.conns[(broker.host, broker.port)] = \
KafkaConnection(broker.host, broker.port, self.bufsize)
@@ -97,7 +99,9 @@ class KafkaClient(object):
self.topic_partitions[topic].append(partition)
def _next_id(self):
- "Generate a new correlation id"
+ """
+ Generate a new correlation id
+ """
return KafkaClient.ID_GEN.next()
def _send_broker_unaware_request(self, requestId, request):