mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Make tabnanny happy. (Piers, please run the test suite before
checking in changes. The test suite requires consistent use of spaces and tabs.)
This commit is contained in:
parent
fe6accfc36
commit
d6bebce5e5
1 changed files with 7 additions and 7 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue