|
10 | 10 | #include "multibytecodec.h"
|
11 | 11 | #include "clinic/multibytecodec.c.h"
|
12 | 12 |
|
| 13 | +#define MODULE_NAME "_multibytecodec" |
| 14 | + |
13 | 15 | typedef struct {
|
14 | 16 | PyTypeObject *encoder_type;
|
15 | 17 | PyTypeObject *decoder_type;
|
@@ -730,7 +732,7 @@ static PyType_Slot multibytecodec_slots[] = {
|
730 | 732 | };
|
731 | 733 |
|
732 | 734 | static PyType_Spec multibytecodec_spec = {
|
733 |
| - .name = "_multibytecodec.MultibyteCodec", |
| 735 | + .name = MODULE_NAME ".MultibyteCodec", |
734 | 736 | .basicsize = sizeof(MultibyteCodecObject),
|
735 | 737 | .flags = Py_TPFLAGS_DEFAULT,
|
736 | 738 | .slots = multibytecodec_slots,
|
@@ -1097,7 +1099,7 @@ static PyType_Slot encoder_slots[] = {
|
1097 | 1099 | };
|
1098 | 1100 |
|
1099 | 1101 | static PyType_Spec encoder_spec = {
|
1100 |
| - .name = "_multibytecodec.MultibyteIncrementalEncoder", |
| 1102 | + .name = MODULE_NAME ".MultibyteIncrementalEncoder", |
1101 | 1103 | .basicsize = sizeof(MultibyteIncrementalEncoderObject),
|
1102 | 1104 | .flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE,
|
1103 | 1105 | .slots = encoder_slots,
|
@@ -1375,7 +1377,7 @@ static PyType_Slot decoder_slots[] = {
|
1375 | 1377 | };
|
1376 | 1378 |
|
1377 | 1379 | static PyType_Spec decoder_spec = {
|
1378 |
| - .name = "_multibytecodec.MultibyteIncrementalDecoder", |
| 1380 | + .name = MODULE_NAME ".MultibyteIncrementalDecoder", |
1379 | 1381 | .basicsize = sizeof(MultibyteIncrementalDecoderObject),
|
1380 | 1382 | .flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE,
|
1381 | 1383 | .slots = decoder_slots,
|
@@ -1702,7 +1704,7 @@ static PyType_Slot reader_slots[] = {
|
1702 | 1704 | };
|
1703 | 1705 |
|
1704 | 1706 | static PyType_Spec reader_spec = {
|
1705 |
| - .name = "_multibytecodec.MultibyteStreamReader", |
| 1707 | + .name = MODULE_NAME ".MultibyteStreamReader", |
1706 | 1708 | .basicsize = sizeof(MultibyteStreamReaderObject),
|
1707 | 1709 | .flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE,
|
1708 | 1710 | .slots = reader_slots,
|
@@ -1928,7 +1930,7 @@ static PyType_Slot writer_slots[] = {
|
1928 | 1930 | };
|
1929 | 1931 |
|
1930 | 1932 | static PyType_Spec writer_spec = {
|
1931 |
| - .name = "_multibytecodec.MultibyteStreamWriter", |
| 1933 | + .name = MODULE_NAME ".MultibyteStreamWriter", |
1932 | 1934 | .basicsize = sizeof(MultibyteStreamWriterObject),
|
1933 | 1935 | .flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE,
|
1934 | 1936 | .slots = writer_slots,
|
|
0 commit comments