D2434: util: use pycompat.bytestr() instead of str()
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Mon Feb 26 00:39:12 EST 2018
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
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, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list