in config_parser.py [0:0]
def _TestPackageConfig(key, value):
if isinstance(value, bool): return True
if not isinstance(value, dict):
raise Exception('Wrong type for key "%s", expecting bool or dict, got %s.' %
(key, type(value)))
keys = value.keys()
if 'platforms' in keys:
_TestListOfStrings('%s.platforms' % key, value['platforms'])
keys.remove('platforms')
if 'barback' in keys:
_TestBoolean('%s.barback' % key, value['barback'])
keys.remove('barback')
if keys:
raise Exception('In %s, unexpected key %s' %
(key, keys[0]))