Skip to content

Commit 7bb12a1

Browse files
authored
Use Cython enum for __PREALLOCED_BUFS (#634)
1 parent 2e8feae commit 7bb12a1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

uvloop/handles/stream.pyx

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
cdef extern from *:
2-
'''
3-
enum {__PREALLOCED_BUFS = 4};
4-
'''
5-
const bint __PREALLOCED_BUFS
1+
cdef enum:
2+
__PREALLOCED_BUFS = 4
63

74

85
@cython.no_gc_clear

0 commit comments

Comments
 (0)