This is an automated email from the ASF dual-hosted git repository. raulcd pushed a commit to branch maint-15.0.x in repository https://gitbox.apache.org/repos/asf/arrow.git
commit a6cabb248a464a023eb2f799e8e8102ec62a1145 Author: Vyas Ramasubramani <[email protected]> AuthorDate: Wed Mar 6 13:51:34 2024 -0800 GH-40386: [Python] Fix except clauses (#40387) ### Rationale for this change See #40386, these changes are necessary for compatibility with Cython 3.0.9 ### What changes are included in this PR? This PR removes unnecessary `noexcept` clauses. ### Are these changes tested? Covered by existing builds. ### Are there any user-facing changes? No. * GitHub Issue: #40386 Authored-by: Vyas Ramasubramani <[email protected]> Signed-off-by: Felipe Oliveira Carvalho <[email protected]> --- python/pyarrow/types.pxi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/pyarrow/types.pxi b/python/pyarrow/types.pxi index e2a9446ce9..9639dd7d89 100644 --- a/python/pyarrow/types.pxi +++ b/python/pyarrow/types.pxi @@ -5261,7 +5261,7 @@ cdef void pycapsule_schema_deleter(object schema_capsule) noexcept: free(schema) -cdef object alloc_c_schema(ArrowSchema** c_schema) noexcept: +cdef object alloc_c_schema(ArrowSchema** c_schema): c_schema[0] = <ArrowSchema*> malloc(sizeof(ArrowSchema)) # Ensure the capsule destructor doesn't call a random release pointer c_schema[0].release = NULL @@ -5280,7 +5280,7 @@ cdef void pycapsule_array_deleter(object array_capsule) noexcept: free(array) -cdef object alloc_c_array(ArrowArray** c_array) noexcept: +cdef object alloc_c_array(ArrowArray** c_array): c_array[0] = <ArrowArray*> malloc(sizeof(ArrowArray)) # Ensure the capsule destructor doesn't call a random release pointer c_array[0].release = NULL @@ -5299,7 +5299,7 @@ cdef void pycapsule_stream_deleter(object stream_capsule) noexcept: free(stream) -cdef object alloc_c_stream(ArrowArrayStream** c_stream) noexcept: +cdef object alloc_c_stream(ArrowArrayStream** c_stream): c_stream[0] = <ArrowArrayStream*> malloc(sizeof(ArrowArrayStream)) # Ensure the capsule destructor doesn't call a random release pointer c_stream[0].release = NULL
