From ec2f8cb4ed3405437b4f78a387b29db26f2e59c3 Mon Sep 17 00:00:00 2001 From: Selwin Ong Date: Sat, 23 May 2020 19:46:10 +0700 Subject: [PATCH] Don't try to import cPickle --- rq/job.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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)