changeset 43406:c3bca833cb92 stable

hghave: fix bytes/string issue on Python 3
author Augie Fackler <augie@google.com>
date Mon, 04 Nov 2019 12:20:11 -0500
parents 7c9d42c1042d
children 09234eeae206
files tests/hghave.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/hghave.py	Mon Nov 04 07:56:53 2019 +0100
+++ b/tests/hghave.py	Mon Nov 04 12:20:11 2019 -0500
@@ -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')