Override clone on Client so that you can call str() on client instances from a ThreadMappedPool
This commit is contained in:
parent
3cb953aee9
commit
314562c437
@ -183,6 +183,13 @@ class Client(_pylibmc.client):
|
|||||||
def behaviours(self):
|
def behaviours(self):
|
||||||
raise AttributeError("nobody uses british spellings")
|
raise AttributeError("nobody uses british spellings")
|
||||||
|
|
||||||
|
def clone(self):
|
||||||
|
obj = super(Client, self).clone()
|
||||||
|
obj.addresses = list(self.addresses)
|
||||||
|
obj.binary = self.binary
|
||||||
|
return obj
|
||||||
|
|
||||||
|
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
|
|
||||||
class ClientPool(Queue):
|
class ClientPool(Queue):
|
||||||
|
Reference in New Issue
Block a user