diff -r 765a9c299c44 -r 29adf0a087a1 mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py Tue Dec 03 17:17:57 2019 -0800 +++ b/mercurial/hgweb/hgwebdir_mod.py Thu Dec 05 11:15:19 2019 -0500 @@ -413,7 +413,7 @@ static = self.ui.config(b"web", b"static", untrusted=False) if not static: tp = self.templatepath or templater.templatepaths() - if isinstance(tp, str): + if isinstance(tp, bytes): tp = [tp] static = [os.path.join(p, b'static') for p in tp]