# HG changeset patch # User Mark Thomas # Date 2018-10-14 09:24:36 # Node ID e4f82db071a4a5870b3830552e0703f208d91a32 # Parent 29b0e9cd02f401969cbc6fd67b80ceb9bfd18c10 py3: fix test-diff-color.t Differential Revision: https://phab.mercurial-scm.org/D5095 diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist --- a/contrib/python3-whitelist +++ b/contrib/python3-whitelist @@ -124,6 +124,7 @@ test-default-push.t test-diff-antipatience.t test-diff-binary-file.t test-diff-change.t +test-diff-color.t test-diff-copy-depth.t test-diff-hashes.t test-diff-ignore-whitespace.t diff --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -2480,7 +2480,7 @@ def diffsinglehunkinline(hunklines): endspaces = chomp[len(token):] # scan tabs for maybetab in tabsplitter.findall(token): - if '\t' == maybetab[0]: + if b'\t' == maybetab[0:1]: currentlabel = 'diff.tab' else: if changed: