summaryrefslogtreecommitdiffstats
path: root/Lib/imaplib.py
diff options
context:
space:
mode:
authorPiers Lauder <piers@cs.su.oz.au>2002-06-24 23:35:37 (GMT)
committerPiers Lauder <piers@cs.su.oz.au>2002-06-24 23:35:37 (GMT)
commit17031bf421b21ae8b792d2b04c0ad5f997244865 (patch)
tree58744e4fc87be45b5e2f218c4c39adfaa75a61cc /Lib/imaplib.py
parent6fe3d7009e0214cc994889a830299be6df7acb92 (diff)
downloadcpython-17031bf421b21ae8b792d2b04c0ad5f997244865.zip
cpython-17031bf421b21ae8b792d2b04c0ad5f997244865.tar.gz
cpython-17031bf421b21ae8b792d2b04c0ad5f997244865.tar.bz2
fix incorrect size calc. in IMAP4_SSL.read
Diffstat (limited to 'Lib/imaplib.py')
-rw-r--r--Lib/imaplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/imaplib.py b/Lib/imaplib.py
index 7afd665..0817da9 100644
--- a/Lib/imaplib.py
+++ b/Lib/imaplib.py
@@ -1059,7 +1059,7 @@ class IMAP4_SSL(IMAP4):
# sslobj.read() sometimes returns < size bytes
data = self.sslobj.read(size)
while len(data) < size:
- data += self.sslobj.read(len(data)-size)
+ data += self.sslobj.read(size-len(data))
return data