diff options
Diffstat (limited to 'Lib/imaplib.py')
-rw-r--r-- | Lib/imaplib.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/imaplib.py b/Lib/imaplib.py index dd6e797..813b67c 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -222,13 +222,13 @@ class IMAP4: def send(self, data): """Send data to remote.""" - bytes = len(data) - while bytes > 0: - sent = self.sock.send(data) - if sent == bytes: - break # avoid copy - data = data[sent:] - bytes = bytes - sent + bytes = len(data) + while bytes > 0: + sent = self.sock.send(data) + if sent == bytes: + break # avoid copy + data = data[sent:] + bytes = bytes - sent def shutdown(self): |