# HG changeset patch # User Pierre-Yves David # Date 2017-06-25 12:41:12 # Node ID e70cbae4c4e60108aa7dc31fc9230ba820861f13 # Parent 1dc2ffe0123b53271a4ce3858f1c15add011a2cf config: use '_config' within 'configbytes' This will prevent bugs from using None as the sentinel value (eg: 'ui.interactive') diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -634,8 +634,8 @@ class ui(object): 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