File: serializers.py

package info (click to toggle)
django-cacheops 7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 404 kB
  • sloc: python: 3,189; sh: 7; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 206 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
import pickle


class PickleSerializer:
    # properties
    PickleError = pickle.PickleError
    HIGHEST_PROTOCOL = pickle.HIGHEST_PROTOCOL

    # methods
    dumps = pickle.dumps
    loads = pickle.loads