Make pylibmc.ClientPool
signature backwards-compatible.
This commit is contained in:
parent
22f0cd6663
commit
b3b36b3acb
@ -156,8 +156,9 @@ class ClientPool(Queue):
|
|||||||
True
|
True
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, mc, n_slots):
|
def __init__(self, mc=None, n_slots=None):
|
||||||
Queue.__init__(self, n_slots)
|
Queue.__init__(self, n_slots)
|
||||||
|
if mc is not None:
|
||||||
self.fill(mc, n_slots)
|
self.fill(mc, n_slots)
|
||||||
|
|
||||||
@contextmanager
|
@contextmanager
|
||||||
|
Reference in New Issue
Block a user