def register_pickle():

    def pickle_dumps(obj, dumper=pickle.dumps):
        return dumper(obj, protocol=pickle_protocol)

    registry.register('pickle', pickle_dumps, unpickle,
                      content_type='application/x-python-serialize',
                      content_encoding='binary')
The fastest serialization method, but restricts
dataset/ETHPy150Open celery/kombu/kombu/serialization.py/register_pickle