[issue28159] Deprecate isdst argument in email.utils.localtime

Mariatta Wijaya report at bugs.python.org
Fri Nov 18 10:18:29 EST 2016


Mariatta Wijaya added the comment:

Thanks David :)
So, I found that isdst was never added as method signature in the docs, but it is mentioned in the paragraph.
https://docs.python.org/3.7/library/email.util.html?#email.utils.localtime

The intention is still just to deprecate isdst argument, right? not the localtime().

I can add a sentence in the docs indicating that we favor datetime.astimezone() instead of email.utils.localtime(), if that works for you. What do you think about this?

----------

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


More information about the Python-bugs-list mailing list