We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9aef19 commit 677d4bcCopy full SHA for 677d4bc
Lib/socket.py
@@ -702,16 +702,15 @@ def readinto(self, b):
702
self._checkReadable()
703
if self._timeout_occurred:
704
raise OSError("cannot read from timed out object")
705
- while True:
706
- try:
707
- return self._sock.recv_into(b)
708
- except timeout:
709
- self._timeout_occurred = True
710
- raise
711
- except error as e:
712
- if e.errno in _blocking_errnos:
713
- return None
714
+ try:
+ return self._sock.recv_into(b)
+ except timeout:
+ self._timeout_occurred = True
+ raise
+ except error as e:
+ if e.errno in _blocking_errnos:
+ return None
715
716
def write(self, b):
717
"""Write the given bytes or bytearray object *b* to the socket
0 commit comments