# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-05-19 12:57:57 # Node ID 6e713711331b9682c32c28575f6719f0d3ca84ad # Parent fc3cca406b2e9ba9c2448471aa6f7772c4cdd582 py3: add b'' prefixes in tests/test-custom-filters.t # skip-blame because just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D3595 diff --git a/tests/test-custom-filters.t b/tests/test-custom-filters.t --- a/tests/test-custom-filters.t +++ b/tests/test-custom-filters.t @@ -12,15 +12,15 @@ $ cat > prefix.py < from mercurial import error > def stripprefix(s, cmd, filename, **kwargs): - > header = '%s\n' % cmd + > header = b'%s\n' % cmd > if s[:len(header)] != header: - > raise error.Abort('missing header "%s" in %s' % (cmd, filename)) + > raise error.Abort(b'missing header "%s" in %s' % (cmd, filename)) > return s[len(header):] > def insertprefix(s, cmd): - > return '%s\n%s' % (cmd, s) + > return b'%s\n%s' % (cmd, s) > def reposetup(ui, repo): - > repo.adddatafilter('stripprefix:', stripprefix) - > repo.adddatafilter('insertprefix:', insertprefix) + > repo.adddatafilter(b'stripprefix:', stripprefix) + > repo.adddatafilter(b'insertprefix:', insertprefix) > EOF $ cat > .hgignore <