diff --git a/compressor/cache.py b/compressor/cache.py index 9daad4484..926f5f8e7 100644 --- a/compressor/cache.py +++ b/compressor/cache.py @@ -1,13 +1,13 @@ import os import socket import time +from hashlib import md5 from django.core.cache import get_cache from django.core.files.base import ContentFile from django.utils import simplejson from django.utils.encoding import smart_str from django.utils.functional import SimpleLazyObject -from django.utils.hashcompat import md5_constructor from django.utils.importlib import import_module from compressor.conf import settings @@ -18,7 +18,7 @@ def get_hexdigest(plaintext, length=None): - digest = md5_constructor(smart_str(plaintext)).hexdigest() + digest = md5(smart_str(plaintext)).hexdigest() if length: return digest[:length] return digest