1
0
mirror of https://github.com/django/django.git synced 2025-10-26 15:16:09 +00:00

[py3] Fixed contrib.formtools tests

This commit is contained in:
Claude Paroz
2012-08-13 21:07:51 +02:00
parent a025b75f6c
commit 363dbd920e
3 changed files with 10 additions and 11 deletions

View File

@@ -193,7 +193,7 @@ class HttpRequest(object):
default argument in which case that value will be returned instead.
"""
try:
cookie_value = self.COOKIES[key].encode('utf-8')
cookie_value = self.COOKIES[key]
except KeyError:
if default is not RAISE_ERROR:
return default