From 6abc2e2bedf1e5cb5bf2a939937485ec761eb114 Mon Sep 17 00:00:00 2001 From: Fantomas42 Date: Fri, 25 Apr 2014 14:09:56 +0200 Subject: [PATCH] Remove calls to django.utils.hashcompat by hashlib --- compressor/cache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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