From 7bb12a174884b2ec8b3162a08564e5fb8a5c6b39 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Tue, 15 Oct 2024 08:33:47 -0700 Subject: [PATCH] Use Cython `enum` for `__PREALLOCED_BUFS` (#634) --- uvloop/handles/stream.pyx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/uvloop/handles/stream.pyx b/uvloop/handles/stream.pyx index 9fbc5a5..c585360 100644 --- a/uvloop/handles/stream.pyx +++ b/uvloop/handles/stream.pyx @@ -1,8 +1,5 @@ -cdef extern from *: - ''' - enum {__PREALLOCED_BUFS = 4}; - ''' - const bint __PREALLOCED_BUFS +cdef enum: + __PREALLOCED_BUFS = 4 @cython.no_gc_clear