summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLou Marvin Caraig <loumarvincaraig@gmail.com>2014-11-26 11:50:39 +0100
committerLou Marvin Caraig <loumarvincaraig@gmail.com>2014-11-26 11:50:39 +0100
commit7041a27e2008d94a09f374cf681ca6fc0b4e0525 (patch)
tree9c05b0bbd086056d01a8830c9b5a0c9a92c1812d
parent813898781fde03aa09e30fdde4bc92951b211268 (diff)
downloadkafka-python-7041a27e2008d94a09f374cf681ca6fc0b4e0525.tar.gz
Added private method _send_messages that can accept kwargs
-rw-r--r--kafka/producer/base.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/kafka/producer/base.py b/kafka/producer/base.py
index 6c91364..c29491e 100644
--- a/kafka/producer/base.py
+++ b/kafka/producer/base.py
@@ -169,7 +169,9 @@ class Producer(object):
All messages produced via this method will set the message 'key' to Null
"""
+ return self._send_messages(topic, partition, *msg)
+ def _send_messages(self, topic, partition, *msg, **kwargs):
# Guarantee that msg is actually a list or tuple (should always be true)
if not isinstance(msg, (list, tuple)):
raise TypeError("msg is not a list or tuple!")