[issue14426] Lib/Cookie.py date format problem

2012-03-27 Thread Federico Reghenzani

Federico Reghenzani  added the comment:

The same problem is present in newest version of Python. I attacched a patch 
for python 3.

--
nosy: +federico.reghenzani
versions: +Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file25046/cookie_3.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14426] Lib/Cookie.py date format problem

2012-03-27 Thread Müte Invert

New submission from Müte Invert :

Cookie.py doesn't format the expiry date correctly. The problematic line is: 
http://hg.python.org/cpython/file/2.7/Lib/Cookie.py#l393, which should read 
'return "%s, %02d %3s %4d %02d:%02d:%02d GMT" % \' (spaces instead of dashes). 
The RFC specifying the date format is 
http://tools.ietf.org/html/rfc2616#section-3.3.1; you can see that with dashes, 
only a 2-digit year is allowed (date2).

--
components: Library (Lib)
messages: 156946
nosy: Müte.Invert
priority: normal
severity: normal
status: open
title: Lib/Cookie.py date format problem
type: behavior
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com