[Patches] [ python-Patches-1005857 ] replacing rfc822.formatdate

SourceForge.net noreply at sourceforge.net
Mon Oct 11 15:55:34 CEST 2004


Patches item #1005857, was opened at 2004-08-09 19:31
Message generated for change (Comment added) made by anthonybaxter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1005857&group_id=5470

Category: Library (Lib)
Group: Python 2.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Anthony Baxter (anthonybaxter)
Assigned to: Anthony Baxter (anthonybaxter)
Summary: replacing rfc822.formatdate

Initial Comment:
If we're going to deprecate rfc822, we should stop
using it.
The following patch makes urllib and urllib2 stop using it
for date strings. Unfortunately HTTP insists on the "GMT" 
notation for the timezone, not "-0000"[1], so
email.Utils.formatdate
grew a new flag "asciigmt". 

Assigning to Barry, as email is his baby.


[1]
http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1

----------------------------------------------------------------------

>Comment By: Anthony Baxter (anthonybaxter)
Date: 2004-10-11 23:55

Message:
Logged In: YES 
user_id=29957

Checked in, with Barry's changes.

Doc/lib/emailutil.tex 1.10
Lib/urllib.py 1.165
Lib/urllib2.py 1.77
Lib/email/Utils.py 1.28
Lib/email/test/test_email.py 1.64


----------------------------------------------------------------------

Comment By: Barry A. Warsaw (bwarsaw)
Date: 2004-10-09 06:48

Message:
Logged In: YES 
user_id=12800

Please include a test case, and add a note to the
documentation that asciigmt is only consulted if the
localtime flag is true.  Also 'asciigmt' looks kind of funny
-- how about 'usegmt'?

Other than that +1


----------------------------------------------------------------------

Comment By: Nick Coghlan (ncoghlan)
Date: 2004-08-11 16:07

Message:
Logged In: YES 
user_id=1038590

I downloaded and applied this without any apparent problems.

(I got a failure of test_socketserver when running with
-unetwork, but I reverted the patch and confirmed that that
was not due to Anthony's patch)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1005857&group_id=5470


More information about the Patches mailing list