Commit 0432fe46 authored by Denis Bilenko's avatar Denis Bilenko

select: remove unused import, use MAXPRI and MINPRI from loop rather than global

parent 88cee40b
......@@ -2,7 +2,6 @@
from gevent.timeout import Timeout
from gevent.event import Event
from gevent.core import MAXPRI, READ, WRITE
from gevent.hub import get_hub
__implements__ = ['select']
......@@ -48,7 +47,9 @@ def select(rlist, wlist, xlist, timeout=None):
"""
watchers = []
timeout = Timeout.start_new(timeout)
io = get_hub().loop.io
loop = get_hub().loop
io = loop.io
MAXPRI = loop.MAXPRI
result = SelectResult()
try:
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment