diff options
author | Jeff Widman <jeff@jeffwidman.com> | 2017-03-03 10:14:54 -0800 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2017-03-03 10:14:54 -0800 |
commit | d9283c14534dd56456e7a3f259f512fa57cc40ad (patch) | |
tree | 451818e8d3795fb6ea1012db89d322b87bdf5509 /kafka/client.py | |
parent | b1f22b882a338a3456ca88782e05660cffff72f6 (diff) | |
download | kafka-python-d9283c14534dd56456e7a3f259f512fa57cc40ad.tar.gz |
Add sphinx formatting to hyperlink methods (#898)
Diffstat (limited to 'kafka/client.py')
-rw-r--r-- | kafka/client.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kafka/client.py b/kafka/client.py index 9df5bd9..1f7c23b 100644 --- a/kafka/client.py +++ b/kafka/client.py @@ -91,11 +91,11 @@ class SimpleClient(object): Returns the leader for a partition or None if the partition exists but has no leader. - UnknownTopicOrPartitionError will be raised if the topic or partition - is not part of the metadata. - - LeaderNotAvailableError is raised if server has metadata, but there is - no current leader + Raises: + UnknownTopicOrPartitionError: If the topic or partition is not part + of the metadata. + LeaderNotAvailableError: If the server has metadata, but there is no + current leader. """ key = TopicPartition(topic, partition) @@ -434,8 +434,8 @@ class SimpleClient(object): Create an inactive copy of the client object, suitable for passing to a separate thread. - Note that the copied connections are not initialized, so reinit() must - be called on the returned copy. + Note that the copied connections are not initialized, so :meth:`.reinit` + must be called on the returned copy. """ _conns = self._conns self._conns = {} |