This is an archive of the discontinued Mercurial Phabricator instance.

py3: cast character set to bytes
ClosedPublic

Authored by indygreg on Feb 11 2018, 10:45 PM.

Details

Summary

The returned value from this function is eventually fed into
email.charset.Charset.init. However, the standard library
appears to handle both string types in Python 2 and 3. So there
shouldn't be any problem returning a bytes here.

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

indygreg created this revision.Feb 11 2018, 10:45 PM
pulkit accepted this revision.Feb 12 2018, 2:43 AM
durin42 accepted this revision.Feb 12 2018, 9:31 PM
This revision is now accepted and ready to land.Feb 12 2018, 9:31 PM
This revision was automatically updated to reflect the committed changes.