diff --git a/rq/job.py b/rq/job.py index c7a67d1..69422da 100644 --- a/rq/job.py +++ b/rq/job.py @@ -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)