D2434: util: use pycompat.bytestr() instead of str()

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Mon Feb 26 00:16:19 EST 2018


durin42 updated this revision to Diff 6085.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2434?vs=6079&id=6085

REVISION DETAIL
  https://phab.mercurial-scm.org/D2434

AFFECTED FILES
  mercurial/util.py

CHANGE DETAILS

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())



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list