py3: build help of compression engines in bytes
authorYuya Nishihara <yuya@tcha.org>
Sat, 13 Oct 2018 14:17:25 +0200
changeset 40251 3c89227788a2
parent 40250 7759c26a3a0b
child 40252 090e5f3900b7
py3: build help of compression engines in bytes Removes "b''" from help.
mercurial/util.py
--- 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