add test to known if has a value + some corrections

This commit is contained in:
2013-08-24 23:10:35 +02:00
parent e6a183c00d
commit f482737a47
2 changed files with 16 additions and 2 deletions

View File

@ -92,10 +92,10 @@ class Values(object):
:param opt: the `option.Option()` object
"""
path = self._get_opt_path(opt)
self._contains(path)
return self._contains(path)
def _contains(self, path):
return self._p_.hasvalue('value', path)
return self._p_.hasvalue(path)
def __delitem__(self, opt):
"""overrides the builtins `del()` instructions"""