Mercurial > public > mercurial-scm > hg-stable
diff contrib/python3-whitelist @ 38473:9ef9884e5d50
py3: make tests/test-diff-antipatience.t work with python 3
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.
Differential Revision: https://phab.mercurial-scm.org/D3833
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Tue, 26 Jun 2018 00:37:02 +0530 |
parents | afa96dd5a483 |
children | 4c358bdaada8 |
line wrap: on
line diff