This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: mailbox.py uses old email names
Type: Stage:
Components: Library (Lib) Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: barry Nosy List: akuchling, barry, georg.brandl, reowen
Priority: normal Keywords:

Created on 2007-01-16 22:19 by reowen, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg31056 - (view) Author: Russell Owen (reowen) Date: 2007-01-16 22:19
mailbox.py uses old (and presumably deprecated) names for stuff in the email package. This can confuse application packagers such as py2app. I believe the complete list of desirable changes is:

email.Generator -> email.generator
email.Message -> email.message
email.message_from_string -> email.parser.message_from_string
email.message_from_file -> email.parser.message_from_file

I submitted patches for urllib, urllib2 and smptlib but wasn't sure enough of mailbox to do that. Those four modules are the only instances I found that needed changing at the main level of the library.

However, I did not do a recursive search. There may be files inside packages that could also use cleanup.
msg31057 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2007-01-22 19:34
Barry, are the suggested name changes for the email module correct?  If yes, please assign this bug back to me and I'll make the changes to the mailbox module.


msg31058 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-01-22 20:34
FWIW, the last two are incorrect.

I already fixed that while doing the other three patches. There shouldn't be any occurences of old style package name imports left.
History
Date User Action Args
2022-04-11 14:56:22adminsetgithub: 44479
2007-01-16 22:19:33reowencreate