Remove unnecessary while in SocketIO.readinto (GH-111057)

It is unnecessary after removing "continue" in 6e6c59b (bpo-42357).
This commit is contained in:
sc07kvm 2023-10-20 00:26:30 +03:00 committed by GitHub
parent c9aef19cbf
commit 677d4bc15e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -702,7 +702,6 @@ class SocketIO(io.RawIOBase):
self._checkReadable()
if self._timeout_occurred:
raise OSError("cannot read from timed out object")
while True:
try:
return self._sock.recv_into(b)
except timeout: