diff mercurial/templatefilters.py @ 36839:82af07e1ae16

py3: fix slicing of bisect label in templatefilters.shortbisect()
author Yuya Nishihara <yuya@tcha.org>
date Tue, 06 Mar 2018 07:16:41 -0600
parents 71f189941791
children 6ff6e1d6b5b8
line wrap: on
line diff
--- a/mercurial/templatefilters.py	Tue Mar 06 07:15:01 2018 -0600
+++ b/mercurial/templatefilters.py	Tue Mar 06 07:16:41 2018 -0600
@@ -349,7 +349,7 @@
     is not a valid bisection status.
     """
     if label:
-        return label[0].upper()
+        return label[0:1].upper()
     return ' '
 
 @templatefilter('shortdate')