diff options
author | Dana Powers <dana.powers@gmail.com> | 2015-01-23 09:41:03 -0800 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2015-01-23 09:41:03 -0800 |
commit | 587206ff6ad59ae01248d24ff9c9fadbdfc1c1fc (patch) | |
tree | a2d6f02a0c79ab3774527df39faf21deb4632936 /kafka/partitioner/base.py | |
parent | e6b37c00c5b0a52f821b35a4e26c0943f3e05b07 (diff) | |
parent | 01f378328e5383d05d52428b815f992eb2c536cb (diff) | |
download | kafka-python-587206ff6ad59ae01248d24ff9c9fadbdfc1c1fc.tar.gz |
Merge pull request #282 from wedaly/sphinx-api-docs
Add Sphinx API docs
Diffstat (limited to 'kafka/partitioner/base.py')
-rw-r--r-- | kafka/partitioner/base.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/kafka/partitioner/base.py b/kafka/partitioner/base.py index c62b7ed..0b1bb59 100644 --- a/kafka/partitioner/base.py +++ b/kafka/partitioner/base.py @@ -7,7 +7,8 @@ class Partitioner(object): """ Initialize the partitioner - partitions - A list of available partitions (during startup) + Arguments: + partitions: A list of available partitions (during startup) """ self.partitions = partitions @@ -16,8 +17,9 @@ class Partitioner(object): Takes a string key and num_partitions as argument and returns a partition to be used for the message - partitions - The list of partitions is passed in every call. This - may look like an overhead, but it will be useful - (in future) when we handle cases like rebalancing + Arguments: + partitions: The list of partitions is passed in every call. This + may look like an overhead, but it will be useful + (in future) when we handle cases like rebalancing """ raise NotImplementedError('partition function has to be implemented') |