Removed no-longer-valid comment about Python 2.3 and 2.4 in formtools/utils.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15931 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
7cac1ecbd0
commit
a89ee065a1
|
@ -35,8 +35,7 @@ def security_hash(request, form, *args):
|
||||||
data.extend(args)
|
data.extend(args)
|
||||||
data.append(settings.SECRET_KEY)
|
data.append(settings.SECRET_KEY)
|
||||||
|
|
||||||
# Use HIGHEST_PROTOCOL because it's the most efficient. It requires
|
# Use HIGHEST_PROTOCOL because it's the most efficient.
|
||||||
# Python 2.3, but Django requires 2.4 anyway, so that's OK.
|
|
||||||
pickled = pickle.dumps(data, pickle.HIGHEST_PROTOCOL)
|
pickled = pickle.dumps(data, pickle.HIGHEST_PROTOCOL)
|
||||||
|
|
||||||
return hashlib.md5(pickled).hexdigest()
|
return hashlib.md5(pickled).hexdigest()
|
||||||
|
|
Loading…
Reference in New Issue