From 8b68abfc404d4c3f8dc7cdd854a990b0382073ad Mon Sep 17 00:00:00 2001 From: Klumhru Date: Thu, 1 May 2014 09:48:01 +0000 Subject: [PATCH] Fix reversed method references According to docs on kombu.serialization.register the params order is (name, encoder, decoder, content_type, content_encoding). This caused us a bit of grief as I was too lazy to read the actual docs on register() :) --- docs/userguide/serialization.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/userguide/serialization.rst b/docs/userguide/serialization.rst index 479d7c7d..37169a88 100644 --- a/docs/userguide/serialization.rst +++ b/docs/userguide/serialization.rst @@ -179,6 +179,6 @@ supported by Kombu. def loads(s): return pickle.load(BytesIO(s)) - register('my_pickle', loads, pickle.dumps, + register('my_pickle', pickle.dumps, loads, content_type='application/x-pickle2', content_encoding='binary')