@@ -168,7 +168,7 @@ static PyObject* KafkaError_richcompare (KafkaError *self, PyObject *o2,
168168
169169static PyTypeObject KafkaErrorType = {
170170 PyVarObject_HEAD_INIT (NULL , 0 )
171- "confluent_kafka .KafkaError" , /*tp_name*/
171+ "cimpl .KafkaError" , /*tp_name*/
172172 sizeof (KafkaError ), /*tp_basicsize*/
173173 0 , /*tp_itemsize*/
174174 (destructor )KafkaError_dealloc , /*tp_dealloc*/
@@ -416,7 +416,7 @@ static PySequenceMethods Message_seq_methods = {
416416
417417PyTypeObject MessageType = {
418418 PyVarObject_HEAD_INIT (NULL , 0 )
419- "confluent_kafka .Message" , /*tp_name*/
419+ "cimpl .Message" , /*tp_name*/
420420 sizeof (Message ), /*tp_basicsize*/
421421 0 , /*tp_itemsize*/
422422 (destructor )Message_dealloc , /*tp_dealloc*/
@@ -660,7 +660,7 @@ static long TopicPartition_hash (TopicPartition *self) {
660660
661661static PyTypeObject TopicPartitionType = {
662662 PyVarObject_HEAD_INIT (NULL , 0 )
663- "confluent_kafka .TopicPartition" , /*tp_name*/
663+ "cimpl .TopicPartition" , /*tp_name*/
664664 sizeof (TopicPartition ), /*tp_basicsize*/
665665 0 , /*tp_itemsize*/
666666 (destructor )TopicPartition_dealloc , /*tp_dealloc*/
@@ -772,7 +772,7 @@ rd_kafka_topic_partition_list_t *py_to_c_parts (PyObject *plist) {
772772
773773 if (!PyList_Check (plist )) {
774774 PyErr_SetString (PyExc_TypeError ,
775- "requires list of confluent_kafka. TopicPartition" );
775+ "requires list of TopicPartition" );
776776 return NULL ;
777777 }
778778
@@ -1137,7 +1137,7 @@ static PyObject *version (PyObject *self, PyObject *args) {
11371137 return Py_BuildValue ("si" , "0.9.1" , 0x00090100 );
11381138}
11391139
1140- static PyMethodDef confluent_kafka_methods [] = {
1140+ static PyMethodDef cimpl_methods [] = {
11411141 {"libversion" , libversion , METH_NOARGS ,
11421142 " Retrieve librdkafka version string and integer\n"
11431143 "\n"
@@ -1230,17 +1230,17 @@ static char *KafkaError_add_errs (PyObject *dict, const char *origdoc) {
12301230
12311231
12321232#ifdef PY3
1233- static struct PyModuleDef confluent_kafka_moduledef = {
1233+ static struct PyModuleDef cimpl_moduledef = {
12341234 PyModuleDef_HEAD_INIT ,
1235- "confluent_kafka" , /* m_name */
1236- "Confluent's Apache Kafka Python client" , /* m_doc */
1235+ "cimpl" , /* m_name */
1236+ "Confluent's Apache Kafka Python client (C implementation) " , /* m_doc */
12371237 -1 , /* m_size */
1238- confluent_kafka_methods , /* m_methods */
1238+ cimpl_methods , /* m_methods */
12391239};
12401240#endif
12411241
12421242
1243- static PyObject * _init_confluent_kafka (void ) {
1243+ static PyObject * _init_cimpl (void ) {
12441244 PyObject * m ;
12451245
12461246 if (PyType_Ready (& KafkaErrorType ) < 0 )
@@ -1255,10 +1255,10 @@ static PyObject *_init_confluent_kafka (void) {
12551255 return NULL ;
12561256
12571257#ifdef PY3
1258- m = PyModule_Create (& confluent_kafka_moduledef );
1258+ m = PyModule_Create (& cimpl_moduledef );
12591259#else
1260- m = Py_InitModule3 ("confluent_kafka " , confluent_kafka_methods ,
1261- "Confluent's Apache Kafka Python client" );
1260+ m = Py_InitModule3 ("cimpl " , cimpl_methods ,
1261+ "Confluent's Apache Kafka Python client (C implementation) " );
12621262#endif
12631263 if (!m )
12641264 return NULL ;
@@ -1283,7 +1283,7 @@ static PyObject *_init_confluent_kafka (void) {
12831283 PyModule_AddObject (m , "Consumer" , (PyObject * )& ConsumerType );
12841284
12851285 KafkaException = PyErr_NewExceptionWithDoc (
1286- "confluent_kafka .KafkaException" ,
1286+ "cimpl .KafkaException" ,
12871287 "Kafka exception that wraps the :py:class:`KafkaError` "
12881288 "class.\n"
12891289 "\n"
@@ -1299,11 +1299,11 @@ static PyObject *_init_confluent_kafka (void) {
12991299
13001300
13011301#ifdef PY3
1302- PyMODINIT_FUNC PyInit_confluent_kafka (void ) {
1303- return _init_confluent_kafka ();
1302+ PyMODINIT_FUNC PyInit_cimpl (void ) {
1303+ return _init_cimpl ();
13041304}
13051305#else
1306- PyMODINIT_FUNC initconfluent_kafka (void ) {
1307- _init_confluent_kafka ();
1306+ PyMODINIT_FUNC initcimpl (void ) {
1307+ _init_cimpl ();
13081308}
13091309#endif
0 commit comments