py3: convert __doc__ to bytes
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 11 Feb 2018 13:06:01 -0800
changeset 36041 e3674c2a585c
parent 36040 0fb0c304ebd6
child 36042 4fe2041007ed
py3: convert __doc__ to bytes Differential Revision: https://phab.mercurial-scm.org/D2142
hgext/show.py
--- a/hgext/show.py	Sun Feb 11 14:21:44 2018 -0800
+++ b/hgext/show.py	Sun Feb 11 13:06:01 2018 -0800
@@ -126,7 +126,7 @@
         ui.write('\n')
 
         for name, func in sorted(views.items()):
-            ui.write(('%s\n') % func.__doc__)
+            ui.write(('%s\n') % pycompat.sysbytes(func.__doc__))
 
         ui.write('\n')
         raise error.Abort(_('no view requested'),