On py2:
import email
import email.utils as eutil
email.Utils.parseaddr is eutil.parseaddr
True
email.Utils.formatdate is eutil.formatdate
True
email.Utils is not present on Python 3.
yuja |
hg-reviewers |
On py2:
import email
import email.utils as eutil
email.Utils.parseaddr is eutil.parseaddr
True
email.Utils.formatdate is eutil.formatdate
True
email.Utils is not present on Python 3.
Lint Skipped |
Unit Tests Skipped |
Perhaps it should be encoding.strfromlocal() because sender
is provided from user config or argument.