diff setup.py @ 44214: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 bb58931d0c4f
children 539490756a72 e147748f750b
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