From 5ca2cad595a377c97b97ee75bcb0da25e7314f7b Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Mon, 9 Sep 2013 22:57:11 -0400 Subject: [PATCH] make _serializers and _deserializers part of instance not the module --- riakcached/client.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/riakcached/client.py b/riakcached/client.py index 6a3dff3..040813b 100644 --- a/riakcached/client.py +++ b/riakcached/client.py @@ -20,12 +20,6 @@ class RiakClient(object): "bucket", "url", ] - _serializers = { - "application/json": json.dumps, - } - _deserializers = { - "application/json": json.loads, - } def __init__(self, bucket, url="http://127.0.0.1:8098", timeout=2): """ @@ -34,6 +28,12 @@ class RiakClient(object): self.url = url.strip("/") self._timeout = timeout self._connect() + self._serializers = { + "application/json": json.dumps, + } + self._deserializers = { + "application/json": json.loads, + } def setup_serializer(self, content_type, serializer, deserializer): """