mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
fix incorrect size calc. in IMAP4_SSL.read
This commit is contained in:
parent
6fe3d7009e
commit
17031bf421
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue