diff -r e2320bb7a99f -r 9a5c4875a88c mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py Fri Jul 31 10:05:07 2020 -0700 +++ b/mercurial/hgweb/hgwebdir_mod.py Mon Aug 03 22:15:45 2020 -0700 @@ -416,7 +416,7 @@ if not static: tp = self.templatepath or templater.templatedir() if tp is not None: - static = [os.path.join(tp, b'static')] + static = os.path.join(tp, b'static') staticfile(static, fname, res) return res.sendresponse()