use kwargs in config files read method

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1763 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2004-09-08 13:27:07 +00:00
parent d287959539
commit ebc1148ffa

View file

@ -361,11 +361,11 @@ config = linkcheck.configuration.Configuration()
# init logging
config.init_logging(debug=options.debug)
linkcheck.log.debug(linkcheck.LOG_CMDLINE, "Python %s on %s", sys.version, sys.platform)
# read configuration from config files
configfiles = []
# read configuration files
if options.configfile:
configfiles.append(options.configfile)
config.read(configfiles)
config.read(files=[options.configfile])
else:
config.read()
# apply commandline options and arguments
constructauth = False
do_profile = False