summaryrefslogtreecommitdiffstats
path: root/Lib/smtplib.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2000-09-01 06:40:07 (GMT)
committerBarry Warsaw <barry@python.org>2000-09-01 06:40:07 (GMT)
commit5bf94a0b772276548781ec6c29c3bd1cc96115d7 (patch)
treee91da72609149a76a6dbb18851ed739ad723c208 /Lib/smtplib.py
parent21fbd540ed690b9364ad2550bb9be78e1facc1ac (diff)
downloadcpython-5bf94a0b772276548781ec6c29c3bd1cc96115d7.zip
cpython-5bf94a0b772276548781ec6c29c3bd1cc96115d7.tar.gz
cpython-5bf94a0b772276548781ec6c29c3bd1cc96115d7.tar.bz2
Applied patch #101350, closing it.
Diffstat (limited to 'Lib/smtplib.py')
-rwxr-xr-xLib/smtplib.py4
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: