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

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Wed, 29 May 2002 13:38:23 -0700


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

Modified Files:
	base64MIME.py 
Log Message:
Use floor division where appropriate.


Index: base64MIME.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/base64MIME.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** base64MIME.py	23 May 2002 15:15:30 -0000	1.2
--- base64MIME.py	29 May 2002 20:38:21 -0000	1.3
***************
*** 88,92 ****
      base64ed = []
      max_encoded = maxlinelen - len(charset) - MISC_LEN
!     max_unencoded = max_encoded * 3 / 4
  
      # BAW: Ben's original code used a step of max_unencoded, but I think it
--- 88,92 ----
      base64ed = []
      max_encoded = maxlinelen - len(charset) - MISC_LEN
!     max_unencoded = max_encoded * 3 // 4
  
      # BAW: Ben's original code used a step of max_unencoded, but I think it
***************
*** 132,136 ****
  
      encvec = []
!     max_unencoded = maxlinelen * 3 / 4
      for i in range(0, len(s), max_unencoded):
          # BAW: should encode() inherit b2a_base64()'s dubious behavior in
--- 132,136 ----
  
      encvec = []
!     max_unencoded = maxlinelen * 3 // 4
      for i in range(0, len(s), max_unencoded):
          # BAW: should encode() inherit b2a_base64()'s dubious behavior in