Skip to content

Commit b6d64d2

Browse files
WillAydjreback
authored andcommitted
Extension Module Compat Cleanup (pandas-dev#29666)
1 parent c916839 commit b6d64d2

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

pandas/_libs/src/compat_helper.h

-5
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,8 @@ PANDAS_INLINE int slice_get_indices(PyObject *s,
3838
Py_ssize_t *stop,
3939
Py_ssize_t *step,
4040
Py_ssize_t *slicelength) {
41-
#if PY_VERSION_HEX >= 0x03000000
4241
return PySlice_GetIndicesEx(s, length, start, stop,
4342
step, slicelength);
44-
#else
45-
return PySlice_GetIndicesEx((PySliceObject *)s, length, start,
46-
stop, step, slicelength);
47-
#endif // PY_VERSION_HEX
4843
}
4944

5045
#endif // PANDAS__LIBS_SRC_COMPAT_HELPER_H_

pandas/_libs/src/parser/io.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The full license is in the LICENSE file, distributed with this software.
1717
#define O_BINARY 0
1818
#endif // O_BINARY
1919

20-
#if PY_VERSION_HEX >= 0x03060000 && defined(_WIN32)
20+
#ifdef _WIN32
2121
#define USE_WIN_UTF16
2222
#include <Windows.h>
2323
#endif

0 commit comments

Comments
 (0)