From e12454f44afbb7d48aecb9d479fcb2fb4799499f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 16 Feb 2002 23:06:19 +0000 Subject: The Grande 'sendall()' patch, copied from release21-maint. Fixes #516715. Replaces calls to socket.send() (which isn't guaranteed to send all data) with the new socket.sendall() method. --- Lib/nntplib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/nntplib.py') diff --git a/Lib/nntplib.py b/Lib/nntplib.py index fad6b08c6e..21faab1aa3 100644 --- a/Lib/nntplib.py +++ b/Lib/nntplib.py @@ -179,7 +179,7 @@ class NNTP: """Internal: send one line to the server, appending CRLF.""" line = line + CRLF if self.debugging > 1: print '*put*', `line` - self.sock.send(line) + self.sock.sendall(line) def putcmd(self, line): """Internal: send one command to the server (through putline()).""" -- cgit v1.2.1