-
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
For compatibility with older python version, in django.utils.hashcompat there is a sha_constructor that can be used specifically for this.
So,
value = sha.new(request.POST.get(self.key_field, '')).hexdigest()
could be replaced with:
from django.utils.hashcompat import sha_constructor
value = sha_constructor(request.POST.get(self.key_field, '')).hexdigest()
http://code.djangoproject.com/browser/django/trunk/django/utils/hashcompat.py
Metadata
Metadata
Assignees
Labels
No labels