mercurial/util.py
changeset 40251 3c89227788a2
parent 40029 e2697acd9381
child 40689 475921a3028c
--- 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