config: use '_config' within 'configbytes'
This will prevent bugs from using None as the sentinel value (eg:
'ui.interactive')
--- 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