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() :)
This commit is contained in:
Klumhru 2014-05-01 09:48:01 +00:00
parent 84eff17853
commit 8b68abfc40
1 changed files with 1 additions and 1 deletions

View File

@ -179,6 +179,6 @@ supported by Kombu.
def loads(s): def loads(s):
return pickle.load(BytesIO(s)) return pickle.load(BytesIO(s))
register('my_pickle', loads, pickle.dumps, register('my_pickle', pickle.dumps, loads,
content_type='application/x-pickle2', content_type='application/x-pickle2',
content_encoding='binary') content_encoding='binary')