changeset 27696 | e70c97cc9243 |
parent 25923 | a027a0813b44 |
child 30349 | 954002426f78 |
--- a/mercurial/config.py Tue Jan 05 21:25:51 2016 -0800 +++ b/mercurial/config.py Thu Jan 07 19:45:03 2016 -0800 @@ -30,6 +30,8 @@ return config(self) def __contains__(self, section): return section in self._data + def hasitem(self, section, item): + return item in self._data.get(section, {}) def __getitem__(self, section): return self._data.get(section, {}) def __iter__(self):