diff -r 2704dc40cf10 -r 26e63204c31e mercurial/templateutil.py --- a/mercurial/templateutil.py Fri Feb 03 02:57:49 2023 +0100 +++ b/mercurial/templateutil.py Thu Feb 02 17:37:51 2023 +0100 @@ -858,7 +858,7 @@ ) elif thing is None: pass - elif not util.safehasattr(thing, b'__iter__'): + elif not util.safehasattr(thing, '__iter__'): yield pycompat.bytestr(thing) else: for i in thing: