From 81803fbab92f60c1ef4ce138f001e3d2ca338dc6 Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 20 Jan 2017 15:32:49 +0800 Subject: [PATCH] wrap _select --- Lib/selectors.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/selectors.py b/Lib/selectors.py index 4e9ae6e..21e1429 100644 --- a/Lib/selectors.py +++ b/Lib/selectors.py @@ -302,7 +302,8 @@ class SelectSelector(_BaseSelectorImpl): r, w, x = select.select(r, w, w, timeout) return r, w + x, [] else: - _select = select.select + def _select(self, r, w, _, timeout=None): + return select.select(r, w, _, timeout) def select(self, timeout=None): timeout = None if timeout is None else max(timeout, 0) -- 2.7.4 (Apple Git-66)