Closed stharding closed 2 years ago
python3.10 sets e.errno to 22 instead of 10022 so we need to check against both WSAEINVAL and EINVAL
Fixes #353
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
python3.10 sets e.errno to 22 instead of 10022 so we need to check against both WSAEINVAL and EINVAL