Skip to content

Remove calls to django.utils.hashcompat by hashlib #11

Merged
merged 1 commit into from Jun 19, 2013

2 participants

@Fantomas42
Libération member

No description provided.

@twidi twidi commented on the diff May 10, 2013
flag/forms.py
@@ -102,7 +102,7 @@ def _generate_security_hash_old(self, content_type, object_pk, timestamp):
"""Generate a (SHA1) security hash from the provided info."""
# Django 1.2 compatibility
@twidi
Libération member
twidi added a note May 10, 2013

Is this comment still needed ?

What versions of django are compatible with your change ?

@Fantomas42
Libération member
Fantomas42 added a note May 13, 2013

If you want to keep the compatibility with Django 1.2 these lines are still needed,
but the changes made only affects the Python version < 2.5.

Note that the call to django.utils.hashcompat will be removed in Django 1.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@twidi twidi merged commit d855ab6 into liberation:master Jun 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.