Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgwebdir_mod.py @ 45327:9a5c4875a88c
hgweb: simplify staticfile() now that we always pass it a single directory
I didn't realize this further simplifications enabled by D8786 until
now.
Differential Revision: https://phab.mercurial-scm.org/D8874
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 03 Aug 2020 22:15:45 -0700 |
parents | d5ccc059fbcd |
children | d12fba074cc6 |
line wrap: on
line diff
--- 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()