py3: make setup.py's hgcommand() consistently return bytes stable
authorMartin von Zweigbergk <martinvonz@google.com>
Wed, 25 Mar 2020 18:25:58 -0700
branchstable
changeset 44603 bda050bc9987
parent 44594 c23877cb25a5
child 44604 2141427533d2
py3: make setup.py's hgcommand() consistently return bytes Before this patch, it returned unicode when the command failed. That made e.g. `make local PYTHON=python3` fail on an obsolete commit. Differential Revision: https://phab.mercurial-scm.org/D8331
setup.py
--- a/setup.py	Mon Mar 23 14:38:00 2020 -0700
+++ b/setup.py	Wed Mar 25 18:25:58 2020 -0700
@@ -274,7 +274,7 @@
         if err or returncode != 0:
             printf("stderr from '%s':" % (' '.join(cmd)), file=sys.stderr)
             printf(err, file=sys.stderr)
-            return ''
+            return b''
         return out