mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-29 10:34:42 +00:00
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:
parent
d287959539
commit
ebc1148ffa
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue