This is an archive of the discontinued Mercurial Phabricator instance.

util: teach escapedata() about bytearray
ClosedPublic

Authored by indygreg on Mar 3 2018, 9:52 AM.

Details

Summary

re.map doesn't seem to know about bytearray (at least in Python 2).
Cast bytearray to a bytes to work around this inconvenience.

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.Mar 3 2018, 9:52 AM
durin42 accepted this revision.Mar 3 2018, 10:14 AM
This revision is now accepted and ready to land.Mar 3 2018, 10:14 AM
This revision was automatically updated to reflect the committed changes.