@@ -279,7 +279,7 @@ cdef class UVStream(UVBaseTransport):
279
279
cdef inline _close_on_read_error(self ):
280
280
self .__read_error_close = 1
281
281
282
- cdef bint _is_reading(self ):
282
+ cdef bint _is_reading(self ) noexcept :
283
283
return self .__reading
284
284
285
285
cdef _start_reading(self ):
@@ -578,7 +578,7 @@ cdef class UVStream(UVBaseTransport):
578
578
579
579
self ._maybe_resume_protocol()
580
580
581
- cdef size_t _get_write_buffer_size(self ):
581
+ cdef size_t _get_write_buffer_size(self ) noexcept :
582
582
if self ._handle is NULL :
583
583
return 0
584
584
return ((< uv.uv_stream_t* > self ._handle).write_queue_size +
@@ -723,7 +723,7 @@ cdef class UVStream(UVBaseTransport):
723
723
724
724
725
725
cdef void __uv_stream_on_shutdown(uv.uv_shutdown_t* req,
726
- int status) with gil:
726
+ int status) noexcept with gil:
727
727
728
728
# callback for uv_shutdown
729
729
@@ -752,7 +752,7 @@ cdef void __uv_stream_on_shutdown(uv.uv_shutdown_t* req,
752
752
753
753
754
754
cdef inline bint __uv_stream_on_read_common(UVStream sc, Loop loop,
755
- ssize_t nread):
755
+ ssize_t nread) noexcept :
756
756
if sc._closed:
757
757
# The stream was closed, there is no reason to
758
758
# do any work now.
@@ -813,7 +813,7 @@ cdef inline bint __uv_stream_on_read_common(UVStream sc, Loop loop,
813
813
814
814
cdef inline void __uv_stream_on_read_impl(uv.uv_stream_t* stream,
815
815
ssize_t nread,
816
- const uv.uv_buf_t* buf):
816
+ const uv.uv_buf_t* buf) noexcept :
817
817
cdef:
818
818
UVStream sc = < UVStream> stream.data
819
819
Loop loop = sc._loop
@@ -841,7 +841,7 @@ cdef inline void __uv_stream_on_read_impl(uv.uv_stream_t* stream,
841
841
sc._fatal_error(exc, False )
842
842
843
843
844
- cdef inline void __uv_stream_on_write_impl(uv.uv_write_t* req, int status):
844
+ cdef inline void __uv_stream_on_write_impl(uv.uv_write_t* req, int status) noexcept :
845
845
cdef:
846
846
_StreamWriteContext ctx = < _StreamWriteContext> req.data
847
847
UVStream stream = < UVStream> ctx.stream
@@ -874,7 +874,7 @@ cdef inline void __uv_stream_on_write_impl(uv.uv_write_t* req, int status):
874
874
875
875
cdef void __uv_stream_on_read(uv.uv_stream_t* stream,
876
876
ssize_t nread,
877
- const uv.uv_buf_t* buf) with gil:
877
+ const uv.uv_buf_t* buf) noexcept with gil:
878
878
879
879
if __ensure_handle_data(< uv.uv_handle_t* > stream,
880
880
" UVStream read callback" ) == 0 :
@@ -884,7 +884,7 @@ cdef void __uv_stream_on_read(uv.uv_stream_t* stream,
884
884
__uv_stream_on_read_impl(stream, nread, buf)
885
885
886
886
887
- cdef void __uv_stream_on_write(uv.uv_write_t* req, int status) with gil:
887
+ cdef void __uv_stream_on_write(uv.uv_write_t* req, int status) noexcept with gil:
888
888
889
889
if UVLOOP_DEBUG:
890
890
if req.data is NULL :
@@ -899,7 +899,7 @@ cdef void __uv_stream_on_write(uv.uv_write_t* req, int status) with gil:
899
899
900
900
cdef void __uv_stream_buffered_alloc(uv.uv_handle_t* stream,
901
901
size_t suggested_size,
902
- uv.uv_buf_t* uvbuf) with gil:
902
+ uv.uv_buf_t* uvbuf) noexcept with gil:
903
903
904
904
if __ensure_handle_data(< uv.uv_handle_t* > stream,
905
905
" UVStream alloc buffer callback" ) == 0 :
@@ -947,7 +947,7 @@ cdef void __uv_stream_buffered_alloc(uv.uv_handle_t* stream,
947
947
948
948
cdef void __uv_stream_buffered_on_read(uv.uv_stream_t* stream,
949
949
ssize_t nread,
950
- const uv.uv_buf_t* buf) with gil:
950
+ const uv.uv_buf_t* buf) noexcept with gil:
951
951
952
952
if __ensure_handle_data(< uv.uv_handle_t* > stream,
953
953
" UVStream buffered read callback" ) == 0 :
0 commit comments