diff options
author | Barry Warsaw <barry@python.org> | 2000-09-01 06:40:07 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2000-09-01 06:40:07 (GMT) |
commit | 5bf94a0b772276548781ec6c29c3bd1cc96115d7 (patch) | |
tree | e91da72609149a76a6dbb18851ed739ad723c208 /Lib | |
parent | 21fbd540ed690b9364ad2550bb9be78e1facc1ac (diff) | |
download | cpython-5bf94a0b772276548781ec6c29c3bd1cc96115d7.zip cpython-5bf94a0b772276548781ec6c29c3bd1cc96115d7.tar.gz cpython-5bf94a0b772276548781ec6c29c3bd1cc96115d7.tar.bz2 |
Applied patch #101350, closing it.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/smtplib.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py index beda161..6536371 100755 --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -224,7 +224,9 @@ class SMTP: if self.debuglevel > 0: print 'send:', `str` if self.sock: try: - self.sock.send(str) + sendptr = 0 + while sendptr < len(str): + sendptr = sendptr + self.sock.send(str[sendptr:]) except socket.error: raise SMTPServerDisconnected('Server not connected') else: |