summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-11-29 21:10:11 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-11-29 21:10:11 +0000
commite0bff4906337e5707971bd6e2cea7bbbbc0f125e (patch)
treef9d910807242fbbe3079dd4fbd84598f1ddefeb2
parent5d1d054e150bace05b8826d990d71c46834eef87 (diff)
Fixed a Python 2.3 incompatibility.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6754 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/formtools/preview.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/formtools/preview.py b/django/contrib/formtools/preview.py
index 2e4fb92cda..bd0ce5cbb7 100644
--- a/django/contrib/formtools/preview.py
+++ b/django/contrib/formtools/preview.py
@@ -109,7 +109,7 @@ class FormPreview(object):
data = [(bf.name, bf.data) for bf in form] + [settings.SECRET_KEY]
# Use HIGHEST_PROTOCOL because it's the most efficient. It requires
# Python 2.3, but Django requires 2.3 anyway, so that's OK.
- pickled = pickle.dumps(data, protocol=pickle.HIGHEST_PROTOCOL)
+ pickled = pickle.dumps(data, pickle.HIGHEST_PROTOCOL)
return md5.new(pickled).hexdigest()
def failed_hash(self, request):