Message 60342 - Python tracker (original) (raw)
There are at least 4 places in the standard Python 2.3 library which build an RFC 2822 formatted string:
rfc822.formatstring email.Utils.formatdate logging.handlers.SMTPHandler.date_time BaseHTTPServer.HTTPServer.date_time_string
Looking at them, it makes sense to me to
replace rfc822's implementation with email's (that's the most flexible of the bunch)
start a migration so that email uses the one from rfc822, if available, else it's own implementation (since email is distributed to older Pythons)
have logging use the one in rfc822.
have BaseHTTPServer use the one in rfc822
If this is deemed an appropriate change, I can send in a patch.