From patchwork Mon Nov 4 21:20:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D7221: hghave: fix bytes/string issue on Python 3 From: phabricator X-Patchwork-Id: 42730 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Mon, 4 Nov 2019 21:20:38 +0000 durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D7221 AFFECTED FILES tests/hghave.py CHANGE DETAILS To: durin42, #hg-reviewers Cc: mercurial-devel diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -987,4 +987,4 @@ version_regex = b'black, version ([0-9a-b.]+)' version = matchoutput(blackcmd, version_regex) sv = distutils.version.StrictVersion - return version and sv(version.group(1)) >= sv('19.10b0') + return version and sv(_strpath(version.group(1))) >= sv('19.10b0')