def check_cfg_files(cfg_files,module_name):
cfg = ConfigParser.SafeConfigParser()<EOL>cfg.read(cfg_files)<EOL>if cfg.has_section(module_name):<EOL><INDENT>section_items = cfg.items(module_name)<EOL><DEDENT>else:<EOL><INDENT>section_items = []<EOL><DEDENT>default_items = cfg.items('<STR_LIT>')<EOL>n_items = len(section_items) + len(default_items)<EOL>if n_items==<NUM_LIT:0>:<EOL><INDENT>log.warn('<STR_LIT>'<EOL>'<STR_LIT>' % (module_name,) )<EOL><DEDENT>
check if the configuration files actually specify something

    If config files are given, give warning if they don't contain
    information. This may indicate a wrong module name name, for
    example.