diff mercurial/hgweb/hgwebdir_mod.py @ 33328:c8f212cb0c83

hgweb: use ui._unset to prevent a warning in configitems
author David Demelier <demelier.david@gmail.com>
date Mon, 03 Jul 2017 13:04:35 +0200
parents eede022fc142
children d5b2beca16c0 734983de2291
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py	Fri Jul 07 00:13:53 2017 -0700
+++ b/mercurial/hgweb/hgwebdir_mod.py	Mon Jul 03 13:04:35 2017 +0200
@@ -404,7 +404,7 @@
                 except Exception as e:
                     u.warn(_('error reading %s/.hg/hgrc: %s\n') % (path, e))
                     continue
-                def get(section, name, default=None):
+                def get(section, name, default=uimod._unset):
                     return u.config(section, name, default, untrusted=True)
 
                 if u.configbool("web", "hidden", untrusted=True):