changeset 44603:bda050bc9987 stable

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
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 25 Mar 2020 18:25:58 -0700
parents c23877cb25a5
children 2141427533d2
files setup.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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