[Python-checkins] CVS: python/dist/src/Lib imaplib.py,1.37,1.38
Guido van Rossum
gvanrossum@users.sourceforge.net
Sun, 21 Oct 2001 17:42:28 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv21191
Modified Files:
imaplib.py
Log Message:
Make tabnanny happy. (Piers, please run the test suite before
checking in changes. The test suite requires consistent use of spaces
and tabs.)
Index: imaplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/imaplib.py,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -d -r1.37 -r1.38
*** imaplib.py 2001/10/21 22:37:28 1.37
--- imaplib.py 2001/10/22 00:42:26 1.38
***************
*** 223,233 ****
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
--- 223,233 ----
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