[PATCH V2] py3: change explicit conversion from str to pycompat.bytestr

Rishabh Madan rishabhmadan96 at gmail.com
Fri Mar 17 13:44:26 UTC 2017


# HG changeset patch
# User Rishabh Madan <rishabhmadan96 at gmail.com>
# Date 1489758142 -19800
#      Fri Mar 17 19:12:22 2017 +0530
# Node ID 3d6d9294e2247316541942c4bec5186cb5772cd6
# Parent  a5bad127128d8f60060be53d161acfa7a32a17d5
py3: change explicit conversion from str to pycompat.bytestr

diff -r a5bad127128d -r 3d6d9294e224 mercurial/commands.py
--- a/mercurial/commands.py	Wed Mar 15 15:48:57 2017 -0700
+++ b/mercurial/commands.py	Fri Mar 17 19:12:22 2017 +0530
@@ -1813,7 +1813,7 @@
     matched = False
     for section, name, value in ui.walkconfig(untrusted=untrusted):
         source = ui.configsource(section, name, untrusted)
-        value = str(value)
+        value = pycompat.bytestr(value)
         if fm.isplain():
             source = source or 'none'
             value = value.replace('\n', '\\n')


More information about the Mercurial-devel mailing list