From patchwork Mon Feb 26 05:39:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D2434: util: use pycompat.bytestr() instead of str() From: phabricator X-Patchwork-Id: 28372 Message-Id: <03b7996d1135209888ce52b6b486e97f@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Mon, 26 Feb 2018 05:39:12 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHGd26b0bedfaa4: util: use pycompat.bytestr() instead of str() (authored by durin42, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2434?vs=6085&id=6092 REVISION DETAIL https://phab.mercurial-scm.org/D2434 AFFECTED FILES mercurial/util.py CHANGE DETAILS To: durin42, #hg-reviewers, indygreg Cc: mercurial-devel diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -1188,7 +1188,7 @@ return '0' if val is True: return '1' - return str(val) + return pycompat.bytestr(val) env = dict(encoding.environ) if environ: env.update((k, py2shell(v)) for k, v in environ.iteritems())