New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Copy from github user macartur] time2netscape missing comma #71653
Comments
For the time2netscape function. In Lib/http/cookiejar.py, line 116 suggests that the format should include a comma while line 123 does not include the comma in the formatted string. Wondering if 116 or 123 is wrong. |
http://web.archive.org/web/19990128171928/http://www51.netscape.com/newsref/std/cookie_spec.html says: Wdy, DD-Mon-YYYY HH:MM:SS GMT so the comma should be there. |
Evelyn, Thanks for digging in. The code for time2netscape has been in the current form since it was originally introduced in 2004. If this is a bug, then it has been present since the introduction of the module. If anyone is using this module, they are probably relying the existing behavior. The spec you pointed out says that this is a bug. The bug fix can go in 2.7, 3.5 and 3.6 releases. |
Here is the patch that fixes this issue. Patch includes unittests and NEWS entry. |
Thanks! |
Fixed the redundant import as pointed by Evelyn on IRC. |
New changeset 3356d7c57750 by Senthil Kumaran in branch '3.5': New changeset 324ade62c0f0 by Senthil Kumaran in branch 'default': |
New changeset c613d8885054 by Senthil Kumaran in branch '2.7': |
This is fixed in all versions of python. Thanks for the review. |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: