changeset 33060:e70cbae4c4e6

config: use '_config' within 'configbytes' This will prevent bugs from using None as the sentinel value (eg: 'ui.interactive')
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 25 Jun 2017 14:41:12 +0200
parents 1dc2ffe0123b
children c41cbe98822c
files mercurial/ui.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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