code: def check_config(config):
      "basic checks that the configuration file is valid"
      shortnames = [count['shortname'] for count in config['count']]
      if len(shortnames) != len(set(shortnames)):
          logger.error("error: duplicate `shortname' in count configuration.")
          return False
      return Truf check_config(config):
      "basic checks that the configuration file is valid"
      shortnames = [count['shortname'] for count in config['count']]
      if len(shortnames) != len(set(shortnames)):
          logger.error("error: duplicate `shortname' in count configuration.")
          return False
      return True
docs: basic checks that the configuration file is valid