diff -r 4e9b39033d3f -r 86f9b25d750b mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py Tue Jul 21 13:41:26 2020 -0700 +++ b/mercurial/hgweb/hgwebdir_mod.py Tue Jul 21 13:36:48 2020 -0700 @@ -415,9 +415,7 @@ static = self.ui.config(b"web", b"static", untrusted=False) if not static: tp = self.templatepath or templater.templatedir() - if isinstance(tp, bytes): - tp = [tp] - static = [os.path.join(p, b'static') for p in tp] + static = [os.path.join(tp, b'static')] staticfile(static, fname, res) return res.sendresponse()