[Python-bugs-list] [Bug #115712] mimetools.decode doesn't work with '7bit' encoding
noreply@sourceforge.net
noreply@sourceforge.net
Sat, 30 Sep 2000 10:07:07 -0700
Bug #115712, was updated on 2000-Sep-30 05:57
Here is a current snapshot of the bug.
Project: Python
Category: Library
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Summary: mimetools.decode doesn't work with '7bit' encoding
Details: 1. mimetools.decode/encode doesn't work with '7bit'/'8bin' encoding.
From mimetools.py:
...
def decode(input, output, encoding):
...
if encoding in ('7bit', '8bit'):
output.write(input.read())
>>>>>>>>You forget 'return' there!
if decodetab.has_key(encoding):
pipethrough(input, decodetab[encoding], output)
else:
raise ValueError, \
'unknown Content-Transfer-Encoding: %s' % encoding
2. mimetools.py used tabs instead of spaces.
3. Bug in documentation
12.5.2 'MultiFile example', line 2:
import MultiFile # instead of 'multifile'
Follow-Ups:
Date: 2000-Sep-30 10:07
By: loewis
Comment:
Fixed in version 1.18 of mimetools.py and version 1.10 of libmultifile.tex.
Conversion of tabs to spaces won't be done for Python 2.0, according to PEP 42.
-------------------------------------------------------
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=115712&group_id=5470