You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2008-06-12.22:16:12.045>created_at=<Date2008-05-14.01:02:03.662>labels= ['type-bug', 'library']
title='Remove usage of rfc822 from the stdlib'updated_at=<Date2008-06-12.22:16:12.043>user='https://github.com/brettcannon'
The rfc822 module has been deprecated for a while but is still used in the
stdlib (at least in 'cgi' and 'test_urllib2'). All uses need to go before
the module can be removed.
The real "release blockers" should be cgi, mimetools and test_urllib2.
hdiogenes commented on May 19, 2008
hdiogenesmannequin
Mannequin
More actions
Correction: mimetools is also being removed from py3k (bpo-2848).
hdiogenes commented on May 19, 2008
hdiogenesmannequin
Mannequin
More actions
Tried to just replace rfc822.Message with email.message_from_file in
cgi.py but it didn't work. I still have to figure out how to fix
FieldStorage.read_multi.
hdiogenes commented on May 31, 2008
hdiogenesmannequin
Mannequin
More actions
Seems that removing rfc822 from cgi is not an easy task -- please see bpo-1112856.
hdiogenes commented on Jun 1, 2008
hdiogenesmannequin
Mannequin
More actions
Added a patch that successfully removes rfc822 dependency from the cgi
module, using ideas from bpo-1112856. I had to change one test, as the
email FeedParser ignores trailing spaces in subparts.
hdiogenes commented on Jun 2, 2008
hdiogenesmannequin
Mannequin
More actions
With the attached patches, rfc822 won't be used anywhere inside Lib/
anymore (with the exception of mimetools, which is going away too).
Reviewed and applied to Python 3.0 in r64161. The patch did not apply
cleanly for 2.6. I'm going to bump this down to critical for the first
betas. Humberto, can you back port it to Python 2.6?
Activity
brettcannon commentedon May 14, 2008
The rfc822 module has been deprecated for a while but is still used in the
stdlib (at least in 'cgi' and 'test_urllib2'). All uses need to go before
the module can be removed.
hdiogenes commentedon May 19, 2008
A quick search for rfc822 imports in py3k reveals this:
The real "release blockers" should be cgi, mimetools and test_urllib2.
hdiogenes commentedon May 19, 2008
Correction: mimetools is also being removed from py3k (bpo-2848).
hdiogenes commentedon May 19, 2008
Tried to just replace rfc822.Message with email.message_from_file in
cgi.py but it didn't work. I still have to figure out how to fix
FieldStorage.read_multi.
hdiogenes commentedon May 31, 2008
Seems that removing rfc822 from
cgiis not an easy task -- please see bpo-1112856.hdiogenes commentedon Jun 1, 2008
Added a patch that successfully removes rfc822 dependency from the cgi
module, using ideas from bpo-1112856. I had to change one test, as the
email FeedParser ignores trailing spaces in subparts.
hdiogenes commentedon Jun 2, 2008
With the attached patches, rfc822 won't be used anywhere inside Lib/
anymore (with the exception of mimetools, which is going away too).
Is there any reason to convert the files below? Shouldn't they be removed
from 3.0?
Demo/scripts/mboxconvert.py -> superseded by mailbox.py
Tools/faqwiz/faqwiz.py -> really old (1998)
Tools/scripts/mailerdaemon.py -> still useful?
Tools/versioncheck/pyversioncheck.py -> really old (1997)
brettcannon commentedon Jun 2, 2008
On Sun, Jun 1, 2008 at 8:33 PM, Humberto Diogenes
<report@bugs.python.org> wrote:
Probably. I bet both the Demo and Tools directory need a thorough clean-up.
warsaw commentedon Jun 12, 2008
Reviewed and applied to Python 3.0 in r64161. The patch did not apply
cleanly for 2.6. I'm going to bump this down to critical for the first
betas. Humberto, can you back port it to Python 2.6?
hdiogenes commentedon Jun 12, 2008
[msg68060]
So, does it make sense to backport this too?
warsaw commentedon Jun 12, 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Jun 12, 2008, at 4:36 PM, Humberto Diogenes wrote:
No.
Thanks,
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
iQCVAwUBSFGSL3EjvBPtnXfVAQLooAP+PQK6Q9p6lDbmLkBgbQio5CXdckssMMyI
yvj0DYvK5wBYCurCjOTZ5VFUQZTEloj6p/89qf3HScfUASlIie1vJJRUqCktPDLs
THBicAS9lUXWLhmrD6ADgaLN88JMlTGnzpe03vBpScgFfy3fp8QHBoMzjud38amn
ozB6lzB+mAQ=
=qHGu
-----END PGP SIGNATURE-----
benjaminp commentedon Jun 12, 2008
I've removed the whole module in r64203.