mirror of https://github.com/rq/rq.git
Don't try to import cPickle
This commit is contained in:
parent
21bf5890c0
commit
ec2f8cb4ed
|
@ -3,6 +3,7 @@ from __future__ import (absolute_import, division, print_function,
|
|||
unicode_literals)
|
||||
|
||||
import inspect
|
||||
import pickle
|
||||
import warnings
|
||||
import zlib
|
||||
|
||||
|
@ -18,12 +19,6 @@ from .serializers import resolve_serializer
|
|||
from .utils import (enum, import_attribute, parse_timeout, str_to_date,
|
||||
utcformat, utcnow)
|
||||
|
||||
try:
|
||||
import cPickle as pickle
|
||||
except ImportError: # noqa # pragma: no cover
|
||||
import pickle
|
||||
|
||||
|
||||
# Serialize pickle dumps using the highest pickle protocol (binary, default
|
||||
# uses ascii)
|
||||
dumps = partial(pickle.dumps, protocol=pickle.HIGHEST_PROTOCOL)
|
||||
|
|
Loading…
Reference in New Issue