mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix the patch for issue #7978: select() raises select.error before 3.3, not OSError.
This commit is contained in:
parent
f18d6f3f44
commit
c0aa9eeb90
2 changed files with 3 additions and 3 deletions
|
@ -153,8 +153,8 @@ def _eintr_retry(func, *args):
|
|||
while True:
|
||||
try:
|
||||
return func(*args)
|
||||
except OSError as e:
|
||||
if e.errno != errno.EINTR:
|
||||
except (OSError, select.error) as e:
|
||||
if e.args[0] != errno.EINTR:
|
||||
raise
|
||||
|
||||
class BaseServer:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue