@@ -250,7 +250,7 @@ static PyObject *Producer_produce (Producer *self, PyObject *args,
250250 "key" ,
251251 "partition" ,
252252 "callback" ,
253- "delivery_callback " , /* Alias */
253+ "on_delivery " , /* Alias */
254254 "partitioner" ,
255255 NULL };
256256
@@ -365,16 +365,16 @@ static PyMethodDef Producer_methods[] = {
365365 "\n"
366366 " Produce message to topic.\n"
367367 " This is an asynchronous operation, an application may use the "
368- "``ondelivery `` argument to pass a function (or lambda) that "
369- "will be called from :py:func:`poll()` when the message has been "
370- "succesfully delivered or permanently fails delivery.\n"
368+ "``callback `` (alias ``on_delivery``) argument to pass a function "
369+ "(or lambda) that will be called from :py:func:`poll()` when the "
370+ "message has been succesfully delivered or permanently fails delivery.\n"
371371 "\n"
372372 " :param str topic: Topic to produce message to\n"
373373 " :param str value: Message payload\n"
374374 " :param str key: Message key\n"
375375 " :param int partition: Partition to produce to, elses uses the "
376376 "configured partitioner.\n"
377- " :param func ondelivery (err,msg): Delivery report callback to call "
377+ " :param func on_delivery (err,msg): Delivery report callback to call "
378378 "(from :py:func:`poll()` or :py:func:`flush()`) on succesful or "
379379 "failed delivery\n"
380380 "\n"
@@ -393,7 +393,7 @@ static PyMethodDef Producer_methods[] = {
393393 "\n"
394394 " Callbacks:\n"
395395 "\n"
396- " - ``ondelivery `` callbacks from :py:func:`produce()`\n"
396+ " - ``on_delivery `` callbacks from :py:func:`produce()`\n"
397397 " - ...\n"
398398 "\n"
399399 " :param float timeout: Maximum time to block waiting for events.\n"
0 commit comments