Steffen Daode Nurpmeso <[email protected]> added the comment:
I also got this now, it happens with and without the str() patch stuff. (Note
that message.py line numbers are off by 1-2 lines ..). I don't know more about
that in the moment, but the only thing that's changed is that i do:
alln = self._msg.items()[:] # In fact -> ensure all are header.Header
# If any converted (str->Header) header names exist ...
if len(alln):
# Delete *all* occurrences of h (doesn't throw)
for (n, b) in alln:
del self._msg[n]
# And append in order
for (n, b) in alln:
self._msg[n] = b
Traceback (most recent call last):
File "/Users/steffen/usr/bin/s-postman.py", line 953, in save_ticket
mb.add(ticket.message())
File "/Users/steffen/usr/opt/py3k/lib/python3.2/mailbox.py", line 595, in
add
self._toc[self._next_key] = self._append_message(message)
File "/Users/steffen/usr/opt/py3k/lib/python3.2/mailbox.py", line 733, in
_append_message
offsets = self._install_message(message)
File "/Users/steffen/usr/opt/py3k/lib/python3.2/mailbox.py", line 805, in
_install_message
self._dump_message(message, self._file, self._mangle_from_)
File "/Users/steffen/usr/opt/py3k/lib/python3.2/mailbox.py", line 215, in
_dump_message
gen.flatten(message)
File "/Users/steffen/usr/opt/py3k/lib/python3.2/email/generator.py", line
88, in flatten
self._write(msg)
File "/Users/steffen/usr/opt/py3k/lib/python3.2/email/generator.py", line
134, in _write
self._dispatch(msg)
File "/Users/steffen/usr/opt/py3k/lib/python3.2/email/generator.py", line
151, in _dispatch
main = msg.get_content_maintype()
File "/Users/steffen/usr/opt/py3k/lib/python3.2/email/message.py", line
528, in get_content_maintype
ctype = self.get_content_type()
File "/Users/steffen/usr/opt/py3k/lib/python3.2/email/message.py", line
516, in get_content_type
ctype = _splitparam(value)[0].lower()
File "/Users/steffen/usr/opt/py3k/lib/python3.2/email/message.py", line 53,
in _splitparam
a, sep, b = param.partition(';')
Exception: AttributeError: 'NoneType' object has no attribute 'partition'
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue11243>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com