diff -r 7aec18bded6d -r f6b30f4b5e07 mercurial/sshpeer.py --- a/mercurial/sshpeer.py Wed Feb 05 16:49:43 2025 +0000 +++ b/mercurial/sshpeer.py Thu Feb 06 15:37:59 2025 +0000 @@ -342,7 +342,7 @@ ui.debug(b'sending hello command\n') ui.debug(b'sending between command\n') - stdin.write(b''.join(handshake)) + _write_all(stdin.write, b''.join(handshake)) stdin.flush() except IOError: badresponse()