mercurial/hgweb/hgwebdir_mod.py
changeset 45335 d12fba074cc6
parent 45327 9a5c4875a88c
child 45339 1a4f925f72c3
--- 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(