config: use '_config' within 'configbytes'
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sun, 25 Jun 2017 14:41:12 +0200
changeset 33060 e70cbae4c4e6
parent 33059 1dc2ffe0123b
child 33061 c41cbe98822c
config: use '_config' within 'configbytes' This will prevent bugs from using None as the sentinel value (eg: 'ui.interactive')
mercurial/ui.py
--- a/mercurial/ui.py	Sun Jun 25 14:38:56 2017 +0200
+++ b/mercurial/ui.py	Sun Jun 25 14:41:12 2017 +0200
@@ -634,8 +634,8 @@
         ConfigError: foo.invalid is not a byte quantity ('somevalue')
         """
 
-        value = self.config(section, name, default, untrusted)
-        if value is None:
+        value = self._config(section, name, default, untrusted)
+        if value is _unset:
             if default is _unset:
                 default = 0
             value = default