This is an archive of the discontinued Mercurial Phabricator instance.

wireprotov1server: use binascii.unhexlify
ClosedPublic

Authored by indygreg on Jan 30 2019, 4:07 PM.

Details

Summary

The "hex" codec doesn't exist in Python 3. We could use
codecs.decode(h, 'hex_codec'). But binascii.unhexlify()
exists and should work the same on Python 2 and 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

indygreg created this revision.Jan 30 2019, 4:07 PM
This revision was automatically updated to reflect the committed changes.