Replace IOError with OSError (#16715)
diff --git a/Lib/socket.py b/Lib/socket.py
index d4f1b65..da0c39a 100644
--- a/Lib/socket.py
+++ b/Lib/socket.py
@@ -291,7 +291,7 @@
         self._checkClosed()
         self._checkReadable()
         if self._timeout_occurred:
-            raise IOError("cannot read from timed out object")
+            raise OSError("cannot read from timed out object")
         while True:
             try:
                 return self._sock.recv_into(b)