@@ -542,7 +542,8 @@ static void *Producer_purge (Handle *self, PyObject *args,
542
542
rd_kafka_resp_err_t err ;
543
543
static char * kws [] = { "in_queue" , "in_flight" , "blocking" , NULL };
544
544
545
- if (!PyArg_ParseTupleAndKeywords (args , kwargs , "|bbb" , kws , & in_queue , & in_flight , & blocking ))
545
+ if (!PyArg_ParseTupleAndKeywords (args , kwargs , "|bbb" , kws ,
546
+ & in_queue , & in_flight , & blocking ))
546
547
return NULL ;
547
548
if (in_queue )
548
549
purge_strategy = RD_KAFKA_PURGE_F_QUEUE ;
@@ -554,7 +555,8 @@ static void *Producer_purge (Handle *self, PyObject *args,
554
555
err = rd_kafka_purge (self -> rk , purge_strategy );
555
556
556
557
if (err ) {
557
- cfl_PyErr_Format (err , "Purge failed: %s" , rd_kafka_err2str (err ));
558
+ cfl_PyErr_Format (err , "Purge failed: %s" ,
559
+ rd_kafka_err2str (err ));
558
560
return NULL ;
559
561
}
560
562
@@ -632,12 +634,13 @@ static PyMethodDef Producer_methods[] = {
632
634
"\n"
633
635
" Purge messages currently handled by the producer instance.\n"
634
636
" The application will need to call poll() or flush() "
635
- "afterwards to serve the delivery report callbacks of the purged messages."
637
+ "afterwards to serve the delivery report callbacks of the purged messages.\n "
636
638
"\n"
637
639
" :param: bool in_queue: Purge messages from internal queues. By default, true.\n"
638
640
" :param: bool in_flight: Purge messages in flight to or from the broker. By default, true.\n"
639
- " :param: bool blocking: If set to False, will not wait on background thread queue\n"
640
- "purging to finish. By default, true."
641
+ " :param: bool blocking: If set to False, will not wait on background thread queue "
642
+ "purging to finish. By default, true.\n"
643
+ "\n"
641
644
},
642
645
{ "list_topics" , (PyCFunction )list_topics , METH_VARARGS |METH_KEYWORDS ,
643
646
list_topics_doc
0 commit comments