This is an archive of the discontinued Mercurial Phabricator instance.

py3: use email.generator module instead of email.Generator
ClosedPublic

Authored by pulkit on Feb 26 2018, 7:31 AM.

Details

Summary

On py2:

import email
import email.generator as emailgen
email.Generator.Generator is emailgen.Generator

True

email.Generator is not present on Python 3.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

pulkit created this revision.Feb 26 2018, 7:31 AM
This revision was automatically updated to reflect the committed changes.