add default parameter to pop on LRUCache
This commit is contained in:
parent
a9f6a68952
commit
00d038c8f3
1 changed files with 2 additions and 2 deletions
|
@ -313,8 +313,8 @@ class LRUCache:
|
|||
def clear(self):
|
||||
self.cache.clear()
|
||||
|
||||
def pop(self, key):
|
||||
return self.cache.pop(key)
|
||||
def pop(self, key, default=None):
|
||||
return self.cache.pop(key, default)
|
||||
|
||||
def __setitem__(self, key, value):
|
||||
return self.set(key, value)
|
||||
|
|
Loading…
Reference in a new issue