def _TestDictOfStrings()

in config_parser.py [0:0]


def _TestDictOfStrings(key, value):
  if not isinstance(value, dict):
    raise Exception('Wrong type for key "%s", expecting dict, got %s.' %
                    (key, type(value)))
  for k, v in value.iteritems():
    if not isinstance(k, basestring):
      raise Exception("In %s the decription %s was not a string but %s" %
                      (key, k, type(k)))
    if not isinstance(v, basestring):
      raise Exception("In %s the command %s was not a string but %s" %
                      (key, v, type(v)))