Mercurial > hg
diff mercurial/hgweb/hgwebdir_mod.py @ 45314:d12fba074cc6
hgweb: remove some accesses to private member uimod._unset
Differential Revision: https://phab.mercurial-scm.org/D8897
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 05 Aug 2020 13:33:07 -0700 |
parents | 9a5c4875a88c |
children | 1a4f925f72c3 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py Thu Jul 30 21:36:29 2020 -0700 +++ b/mercurial/hgweb/hgwebdir_mod.py Wed Aug 05 13:33:07 2020 -0700 @@ -537,8 +537,9 @@ return res.sendresponse() def templater(self, req, nonce): - def config(section, name, default=uimod._unset, untrusted=True): - return self.ui.config(section, name, default, untrusted) + def config(*args, **kwargs): + kwargs.setdefault('untrusted', True) + return self.ui.config(*args, **kwargs) vars = {} styles, (style, mapfile) = hgweb_mod.getstyle(