[Python-checkins] python/dist/src/Lib/email base64MIME.py,1.6,1.7 (original) (raw)
bwarsaw at users.sourceforge.net bwarsaw at users.sourceforge.net
Sat May 8 23:53:52 EDT 2004
- Previous message: [Python-checkins] python/dist/src/Lib/email _parseaddr.py,1.7,1.8
- Next message: [Python-checkins] python/dist/src/Lib/email quopriMIME.py,1.5,1.6
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /cvsroot/python/python/dist/src/Lib/email In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15188
Modified Files: base64MIME.py Log Message: Update to Python 2.3, getting rid of backward compatiblity crud.
Index: base64MIME.py
RCS file: /cvsroot/python/python/dist/src/Lib/email/base64MIME.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** base64MIME.py 6 Mar 2003 05:25:00 -0000 1.6
--- base64MIME.py 9 May 2004 03:53:50 -0000 1.7
***************
*** 28,38 ****
from email.Utils import fix_eols
- try:
- from email._compat22 import _floordiv
- except SyntaxError:
- # Python 2.1 spells integer division differently
- from email._compat21 import _floordiv
-
CRLF = '\r\n'
NL = '\n'
--- 28,31 ----
***************
*** 42,51 ****
MISC_LEN = 7
- try:
- True, False
- except NameError:
- True = 1
- False = 0
--- 35,38 ----
*** 101,105 **** base64ed = [] max_encoded = maxlinelen - len(charset) - MISC_LEN ! max_unencoded = _floordiv(max_encoded * 3, 4)
for i in range(0, len(header), max_unencoded):
--- 88,92 ---- base64ed = [] max_encoded = maxlinelen - len(charset) - MISC_LEN ! max_unencoded = max_encoded * 3 // 4
for i in range(0, len(header), max_unencoded):
*** 142,146 ****
encvec = []
! max_unencoded = _floordiv(maxlinelen * 3, 4) for i in range(0, len(s), max_unencoded): # BAW: should encode() inherit b2a_base64()'s dubious behavior in --- 129,133 ----
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
- Previous message: [Python-checkins] python/dist/src/Lib/email _parseaddr.py,1.7,1.8
- Next message: [Python-checkins] python/dist/src/Lib/email quopriMIME.py,1.5,1.6
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]