This is an archive of the discontinued Mercurial Phabricator instance.

py3: make tests/test-diff-antipatience.t work with python 3
ClosedPublic

Authored by pulkit on Jun 25 2018, 4:44 PM.

Details

Summary

On python3, if we do list(b'abcd'), we get [97, 98, 99, 100]. So this patch does
the list() operation on unicodes and then convert things to bytes.

This also adds and None to suppress return values of .write() calls.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

pulkit created this revision.Jun 25 2018, 4:44 PM
This revision was automatically updated to reflect the committed changes.