[Python-checkins] python/dist/src/Lib/email _compat22.py,1.2,1.3

bwarsaw@users.sourceforge.net bwarsaw@users.sourceforge.net
Sun, 02 Jun 2002 11:59:09 -0700


Update of /cvsroot/python/python/dist/src/Lib/email
In directory usw-pr-cvs1:/tmp/cvs-serv23565

Modified Files:
	_compat22.py 
Log Message:
_intdiv2() -> _floordiv(), merge of uncommitted changes.


Index: _compat22.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/_compat22.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** _compat22.py	2 Jun 2002 16:38:14 -0000	1.2
--- _compat22.py	2 Jun 2002 18:59:06 -0000	1.3
***************
*** 26,33 ****
  
  
! # Used internally by the Header class
! def _floordiv(x, y):
!     """Do integer division."""
!     return x // y
  
  
--- 26,33 ----
  
  
! # Python 2.2 spells floor division //
! def _floordiv(i, j):
!     """Do a floor division, i/j."""
!     return i // j