use d.update

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@144 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2000-08-02 10:13:58 +00:00
parent d53bd65769
commit 659d2f1ab8
3 changed files with 7 additions and 11 deletions

3
debian/changelog vendored
View file

@ -2,7 +2,8 @@ linkchecker (1.2.4) unstable; urgency=low
* fixed parsing of /etc/resolv.conf with empty lines
* french translation from Jerome Couderc <j.couderc@ifrance.com>
* fix for HTTP HEAD requests from bad/dumb servers
and Michael Gensheimer <michael@gensheimer.net>
* fix for HTTP HEAD requests from bad/dumb/old servers
* CGI script fixes
* LinkChecker Online HTML pages added
* news: link support for links which specify a NNTP server

1
debian/rules vendored
View file

@ -13,6 +13,7 @@ build-stamp:
dh_testdir
# Add here commands to compile the package.
rm -rf debian/tmp
python setup.py build
touch build-stamp

View file

@ -27,15 +27,6 @@ from types import StringType
import Logging
from linkcheck import _
def dictjoin(d1, d2):
d = {}
for key in d1.keys():
d[key] = d1[key]
for key in d2.keys():
d[key] = d2[key]
return d
Version = "$version"
AppName = "$appname"
App = AppName+" "+Version
@ -255,7 +246,10 @@ class Configuration(UserDict.UserDict):
self.robotsTxtCache[key] = val
def newLogger(self, name, dict={}):
return apply(Loggers[name], (), dictjoin(self.data[name],dict))
namespace = {}
namespace.update(self.data[name])
namespace.update(dict)
return apply(Loggers[name], (), namespace)
def incrementLinknumber_NoThreads(self):
self.data['linknumber'] = self.data['linknumber'] + 1