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.append(settings.SECRET_KEY)
|
||||
|
||||
# Use HIGHEST_PROTOCOL because it's the most efficient. It requires
|
||||
# Python 2.3, but Django requires 2.4 anyway, so that's OK.
|
||||
# Use HIGHEST_PROTOCOL because it's the most efficient.
|
||||
pickled = pickle.dumps(data, pickle.HIGHEST_PROTOCOL)
|
||||
|
||||
return hashlib.md5(pickled).hexdigest()
|
||||
|
|
Loading…
Reference in New Issue