mirror of https://github.com/peter4431/rq.git
Abstract away from the concrete pickle implementation.
Choose cPickle, if available, for best performance.main
parent
c4553f2a22
commit
9318825429
@ -0,0 +1,9 @@
|
||||
from __future__ import absolute_import
|
||||
try:
|
||||
import cPickle as pickle
|
||||
except ImportError:
|
||||
import pickle # noqa
|
||||
|
||||
loads = pickle.loads
|
||||
dumps = pickle.dumps
|
||||
UnpicklingError = pickle.UnpicklingError
|
Loading…
Reference in New Issue