diff -r 8accf5fa9930 -r 6ff1a0d109c9 mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py Sat Nov 30 02:38:42 2019 -0500 +++ b/mercurial/hgweb/hgwebdir_mod.py Sat Nov 30 02:53:39 2019 -0500 @@ -412,7 +412,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]