File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 78
78
# define PyFile_AsFile (o ) (NULL)
79
79
#endif
80
80
81
- #if PY_VERSION_HEX <= 0x03030000 && !(defined(CYTHON_PEP393_ENABLED ) && CYTHON_PEP393_ENABLED )
82
- #define PyUnicode_IS_READY (op ) (0)
83
- #define PyUnicode_GET_LENGTH (u ) PyUnicode_GET_SIZE(u)
84
- #define PyUnicode_KIND (u ) (sizeof(Py_UNICODE))
85
- #define PyUnicode_DATA (u ) ((void*)PyUnicode_AS_UNICODE(u))
86
- #endif
87
-
88
81
#if IS_PYPY
89
82
# ifndef PyUnicode_FromFormat
90
83
# define PyUnicode_FromFormat PyString_FromFormat
Original file line number Diff line number Diff line change @@ -8,11 +8,16 @@ cdef extern from *:
8
8
cdef extern from " Python.h" :
9
9
"""
10
10
#if defined(CYTHON_PEP393_ENABLED) && CYTHON_PEP393_ENABLED
11
- #if PY_VERSION_HEX >= 0x030C0000 && !defined(PyUnicode_IS_READY)
11
+ #if PY_VERSION_HEX >= 0x030C0000
12
+ #undef PyUnicode_IS_READY
12
13
#define PyUnicode_IS_READY(s) (1)
14
+ #undef PyUnicode_READY
13
15
#define PyUnicode_READY(s) (0)
16
+ #undef PyUnicode_AS_DATA
14
17
#define PyUnicode_AS_DATA(s) (0)
18
+ #undef PyUnicode_GET_DATA_SIZE
15
19
#define PyUnicode_GET_DATA_SIZE(s) (0)
20
+ #undef PyUnicode_GET_SIZE
16
21
#define PyUnicode_GET_SIZE(s) (0)
17
22
#endif
18
23
#elif PY_VERSION_HEX <= 0x03030000
You can’t perform that action at this time.
0 commit comments