changeset 40251:3c89227788a2

py3: build help of compression engines in bytes Removes "b''" from help.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 13 Oct 2018 14:17:25 +0200
parents 7759c26a3a0b
children 090e5f3900b7
files mercurial/util.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py	Sat Oct 13 14:11:12 2018 +0200
+++ b/mercurial/util.py	Sat Oct 13 14:17:25 2018 +0200
@@ -3867,11 +3867,10 @@
         if not bt or not bt[0]:
             continue
 
-        doc = pycompat.sysstr('``%s``\n    %s') % (
-            bt[0], engine.bundletype.__doc__)
+        doc = b'``%s``\n    %s' % (bt[0], pycompat.getdoc(engine.bundletype))
 
         value = docobject()
-        value.__doc__ = doc
+        value.__doc__ = pycompat.sysstr(doc)
         value._origdoc = engine.bundletype.__doc__
         value._origfunc = engine.bundletype