diff options
author | Vetoshkin Nikita <nekto0n@yandex-team.ru> | 2013-10-03 18:00:57 +0400 |
---|---|---|
committer | David Arthur <mumrah@gmail.com> | 2013-10-03 19:37:13 -0400 |
commit | e392e0c2010562c10eca210056edef057e344e30 (patch) | |
tree | fe0db67b6d8cfe75f96021be9cbf887ed1553cd1 /kafka/client.py | |
parent | e87cddef1b9a8360d94ffae1e7fd3c82790cd2a6 (diff) | |
download | kafka-python-e392e0c2010562c10eca210056edef057e344e30.tar.gz |
style: use triple quotes for docstrings
Diffstat (limited to 'kafka/client.py')
-rw-r--r-- | kafka/client.py | 8 |
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): |