dabeaz / curio

Good Curio!
Other
4.03k stars 241 forks source link

Fix for windows OSError raised when select is called with empty lists since python 3.10.5 #354

Closed stharding closed 2 years ago

stharding commented 2 years ago

python3.10 sets e.errno to 22 instead of 10022 so we need to check against both WSAEINVAL and EINVAL

stharding commented 2 years ago

Fixes #353

pquentin commented 2 years ago

For reference, this also applies to Python 3.9.13 and later as the fix was backported: https://docs.python.org/3.9/whatsnew/changelog.html#python-3-9-13-final