accept a dict as lru init val

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3044 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2006-02-02 23:00:03 +00:00
parent 902949f27e
commit 38a7b15aeb

View file

@ -184,7 +184,7 @@ class LRU (object):
self.first = None
self.last = None
if pairs is not None:
for key, value in pairs:
for key, value in pairs.items():
self[key] = value
def __contains__ (self, obj):