Skip to content

Commit b56c375

Browse files
author
taras
committed
Apply PR comments
1 parent 37af342 commit b56c375

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

uvloop/handles/stream.pxd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ cdef class UVStream(UVBaseTransport):
3939

4040
# _exec_write() is the method that does the actual send, and _try_write()
4141
# is a fast-path used in _exec_write() to send a single chunk.
42-
cdef inline bint _exec_write(self) except? -1
43-
cdef inline Py_ssize_t _try_write(self, object data) except? -2
42+
cdef inline bint _exec_write(self) except -1
43+
cdef inline Py_ssize_t _try_write(self, object data) except -2
4444

4545
cdef _close(self)
4646

uvloop/handles/stream.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ cdef class UVStream(UVBaseTransport):
341341
else:
342342
self.__reading_stopped()
343343

344-
cdef inline Py_ssize_t _try_write(self, object data) except? -2:
344+
cdef inline Py_ssize_t _try_write(self, object data) except -2:
345345
# Returns number of bytes written.
346346
# -1 - in case of fatal errors
347347
cdef:
@@ -450,7 +450,7 @@ cdef class UVStream(UVBaseTransport):
450450
self._maybe_pause_protocol()
451451
self._loop._queue_write(self)
452452

453-
cdef inline bint _exec_write(self) except? -1:
453+
cdef inline bint _exec_write(self) except -1:
454454
# Returns True if all data from self._buffers has been sent,
455455
# False - otherwise
456456
cdef:

0 commit comments

Comments
 (0)