diff --git a/pandas/_libs/src/compat_helper.h b/pandas/_libs/src/compat_helper.h index 078069fb48af2..01d5b843d1bb6 100644 --- a/pandas/_libs/src/compat_helper.h +++ b/pandas/_libs/src/compat_helper.h @@ -38,13 +38,8 @@ PANDAS_INLINE int slice_get_indices(PyObject *s, Py_ssize_t *stop, Py_ssize_t *step, Py_ssize_t *slicelength) { -#if PY_VERSION_HEX >= 0x03000000 return PySlice_GetIndicesEx(s, length, start, stop, step, slicelength); -#else - return PySlice_GetIndicesEx((PySliceObject *)s, length, start, - stop, step, slicelength); -#endif // PY_VERSION_HEX } #endif // PANDAS__LIBS_SRC_COMPAT_HELPER_H_ diff --git a/pandas/_libs/src/parser/io.c b/pandas/_libs/src/parser/io.c index 5d73230f32955..aecd4e03664e6 100644 --- a/pandas/_libs/src/parser/io.c +++ b/pandas/_libs/src/parser/io.c @@ -17,7 +17,7 @@ The full license is in the LICENSE file, distributed with this software. #define O_BINARY 0 #endif // O_BINARY -#if PY_VERSION_HEX >= 0x03060000 && defined(_WIN32) +#ifdef _WIN32 #define USE_WIN_UTF16 #include #endif