Merge of the folding-reimpl-branch. Specific changes,

Remove a senseless comment.
This commit is contained in:
Barry Warsaw 2003-03-06 05:25:00 +00:00
parent 5d384ef069
commit 5c2f1536d0
1 changed files with 0 additions and 3 deletions

View File

@ -102,9 +102,6 @@ def header_encode(header, charset='iso-8859-1', keep_eols=False,
max_encoded = maxlinelen - len(charset) - MISC_LEN max_encoded = maxlinelen - len(charset) - MISC_LEN
max_unencoded = _floordiv(max_encoded * 3, 4) max_unencoded = _floordiv(max_encoded * 3, 4)
# BAW: Ben's original code used a step of max_unencoded, but I think it
# ought to be max_encoded. Otherwise, where's max_encoded used? I'm
# still not sure what the
for i in range(0, len(header), max_unencoded): for i in range(0, len(header), max_unencoded):
base64ed.append(b2a_base64(header[i:i+max_unencoded])) base64ed.append(b2a_base64(header[i:i+max_unencoded]))