changeset 45201 | 86f9b25d750b |
parent 45199 | 91aa9bba3dc9 |
child 45306 | 9a5c4875a88c |
--- a/mercurial/hgweb/webcommands.py Tue Jul 21 13:41:26 2020 -0700 +++ b/mercurial/hgweb/webcommands.py Tue Jul 21 13:36:48 2020 -0700 @@ -1320,9 +1320,7 @@ static = web.config(b"web", b"static", untrusted=False) if not static: tp = web.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, web.res) return web.res.sendresponse()