chiark / gitweb /
debian: Fix package sections.
[mLib-python] / sel-base.pyx
index 6a5e2c39b39c38272240a2944117486ac9cb9eab..e7b4fbe7329a9a6a51132cc95772834de8fb3f3b 100644 (file)
 cdef sel_state _sel
 
 def select():
-  cdef int rc
-  PyEval_ReleaseLock()
-  rc = sel_select(&_sel)
-  PyEval_AcquireLock()
-  if rc and errno != EINTR and errno != EAGAIN:
+  if sel_select(&_sel) and errno != EINTR and errno != EAGAIN:
     _oserror()
 
 sel_init(&_sel)