From b149831264a5309884e758ddd0d169ee4605d34a Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 19 Apr 2014 23:08:42 +0300 Subject: [PATCH] select: epoll: Accept sizehint param. --- select/select.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/select/select.py b/select/select.py index b3824ff9..1a25fc0b 100644 --- a/select/select.py +++ b/select/select.py @@ -45,7 +45,7 @@ class Epoll: return res -def epoll(): - fd = epoll_create(4) +def epoll(sizehint=4): + fd = epoll_create(sizehint) os.check_error(fd) return Epoll(fd)