mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-05 05:04:46 +00:00
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:
parent
902949f27e
commit
38a7b15aeb
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue