misc: remove usage of django.utils.six (#68920)

This commit is contained in:
Frédéric Péters 2022-09-11 10:31:08 +02:00
parent 0acb793288
commit 5802daf456
1 changed files with 1 additions and 2 deletions

View File

@ -57,7 +57,6 @@ from django.core import signing
from django.db.models import Q
from django.forms.models import ModelChoiceIterator
from django.utils.encoding import force_text
from django.utils.six.moves.cPickle import PicklingError as cPicklingError
from .cache import cache
from .conf import settings
@ -262,7 +261,7 @@ class HeavySelect2Mixin(object):
'widget': self,
'url': self.get_url(),
})
except (PicklingError, cPicklingError, AttributeError):
except (PicklingError, AttributeError):
msg = "You need to overwrite \"set_to_cache\" or ensure that %s is serialisable."
raise NotImplementedError(msg % self.__class__.__name__)