[issue1273] email module example email-unpack.py error

2007-11-24 Thread Georg Brandl

Georg Brandl added the comment:

Thanks, this is fixed in the development docs now (r58445).

--
nosy: +georg.brandl
resolution:  - fixed
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1273
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1273] email module example email-unpack.py error

2007-10-12 Thread Ed Vinyard

New submission from Ed Vinyard:

In the email module example, email-unpack.py
(http://docs.python.org/lib/email-unpack.txt), line 56 throws an
AttributeError.  It is currently

ext = mimetypes.guess_extension(part.get_type())

I think this line should be

ext = mimetypes.guess_extension(part.get_content_type())

The Message documentation
(http://docs.python.org/lib/module-email.message.html) mentions that
Changed in version 2.5: The previously deprecated methods get_type(),
get_main_type(), and get_subtype() were removed.

--
components: Documentation
messages: 56376
nosy: esv
severity: minor
status: open
title: email module example email-unpack.py error
type: behavior
versions: Python 2.5

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1273
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com