File tree Expand file tree Collapse file tree 6 files changed +14
-17
lines changed
asciidtype/asciidtype/src
metadatadtype/metadatadtype/src
stringdtype/stringdtype/src Expand file tree Collapse file tree 6 files changed +14
-17
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ PyInit__asciidtype_main(void)
21
21
if (_import_array () < 0 ) {
22
22
return NULL ;
23
23
}
24
- if (import_experimental_dtype_api (5 ) < 0 ) {
24
+ if (import_experimental_dtype_api (6 ) < 0 ) {
25
25
return NULL ;
26
26
}
27
27
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ PyInit__metadatadtype_main(void)
21
21
if (_import_array () < 0 ) {
22
22
return NULL ;
23
23
}
24
- if (import_experimental_dtype_api (5 ) < 0 ) {
24
+ if (import_experimental_dtype_api (6 ) < 0 ) {
25
25
return NULL ;
26
26
}
27
27
Original file line number Diff line number Diff line change 9
9
#include "umath.h"
10
10
#include "terrible_hacks.h"
11
11
12
-
13
12
static struct PyModuleDef moduledef = {
14
- PyModuleDef_HEAD_INIT ,
15
- .m_name = "mpfdtype_main" ,
16
- .m_size = -1 ,
13
+ PyModuleDef_HEAD_INIT ,
14
+ .m_name = "mpfdtype_main" ,
15
+ .m_size = -1 ,
17
16
};
18
17
19
-
20
18
/* Module initialization function */
21
- PyMODINIT_FUNC PyInit__mpfdtype_main (void )
19
+ PyMODINIT_FUNC
20
+ PyInit__mpfdtype_main (void )
22
21
{
23
22
if (_import_array () < 0 ) {
24
23
return NULL ;
25
24
}
26
- if (import_experimental_dtype_api (5 ) < 0 ) {
25
+ if (import_experimental_dtype_api (6 ) < 0 ) {
27
26
return NULL ;
28
27
}
29
28
@@ -36,17 +35,15 @@ PyMODINIT_FUNC PyInit__mpfdtype_main(void)
36
35
goto error ;
37
36
}
38
37
39
- if (PyModule_AddObject (m ,
40
- "MPFloat" , (PyObject * )& MPFloat_Type ) < 0 ) {
38
+ if (PyModule_AddObject (m , "MPFloat" , (PyObject * )& MPFloat_Type ) < 0 ) {
41
39
goto error ;
42
40
}
43
41
44
42
if (init_mpf_dtype () < 0 ) {
45
43
goto error ;
46
44
}
47
45
48
- if (PyModule_AddObject (m ,
49
- "MPFDType" , (PyObject * )& MPFDType ) < 0 ) {
46
+ if (PyModule_AddObject (m , "MPFDType" , (PyObject * )& MPFDType ) < 0 ) {
50
47
goto error ;
51
48
}
52
49
@@ -60,7 +57,7 @@ PyMODINIT_FUNC PyInit__mpfdtype_main(void)
60
57
61
58
return m ;
62
59
63
- error :
60
+ error :
64
61
Py_DECREF (m );
65
62
return NULL ;
66
63
}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ PyInit__quaddtype_main(void)
23
23
return NULL ;
24
24
25
25
// Fail to init if the experimental DType API version 5 isn't supported
26
- if (import_experimental_dtype_api (5 ) < 0 ) {
26
+ if (import_experimental_dtype_api (6 ) < 0 ) {
27
27
PyErr_SetString (PyExc_ImportError ,
28
28
"Error encountered importing the experimental dtype API." );
29
29
return NULL ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ PyInit__main(void)
21
21
if (_import_array () < 0 ) {
22
22
return NULL ;
23
23
}
24
- if (import_experimental_dtype_api (5 ) < 0 ) {
24
+ if (import_experimental_dtype_api (6 ) < 0 ) {
25
25
return NULL ;
26
26
}
27
27
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ PyInit__unytdtype_main(void)
21
21
if (_import_array () < 0 ) {
22
22
return NULL ;
23
23
}
24
- if (import_experimental_dtype_api (5 ) < 0 ) {
24
+ if (import_experimental_dtype_api (6 ) < 0 ) {
25
25
return NULL ;
26
26
}
27
27
You can’t perform that action at this time.
0 commit comments