[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

Shashwat Anand report at bugs.python.org
Mon Apr 12 21:06:52 CEST 2010


Shashwat Anand <anand.shashwat at gmail.com> added the comment:

Quoting from the docstring of trunk/Lib/email/utils.py -> formatdate()

"We cannot use strftime() because that honors the locale and RFC 2822 requires that day and month names be the English abbreviations."

So yes, I do agree that email.utils.formatdate() should be used instead of time.strftime() to remove duplicate codes and be compliant with RFC.
Removing previous patch and submitting another.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7370>
_______________________________________


More information about the Python-bugs-list mailing list