# HG changeset patch
# User Rishabh Madan <rishabhmada...@gmail.com>
# Date 1489746142 -19800
#      Fri Mar 17 15:52:22 2017 +0530
# Node ID 2aac5780c5b3c30602ca128cfeb6e38a42f2c0fb
# Parent  a5bad127128d8f60060be53d161acfa7a32a17d5
py3: change explicit conversion from str to bytes

diff -r a5bad127128d -r 2aac5780c5b3 mercurial/commands.py
--- a/mercurial/commands.py     Wed Mar 15 15:48:57 2017 -0700
+++ b/mercurial/commands.py     Fri Mar 17 15:52: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 = bytes(value)
         if fm.isplain():
             source = source or 'none'
             value = value.replace('\n', '\\n')
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to