0
0
mirror of https://github.com/django/django.git synced 2024-11-29 22:56:46 +01:00

Fixed syntax error on Python 3.2; refs #20889.

This commit is contained in:
Tim Graham 2013-09-09 09:54:08 -04:00
parent cbf08c6b0c
commit 789d8f0748

View File

@ -296,7 +296,7 @@ class HttpResponseTests(unittest.TestCase):
h = HttpResponse() h = HttpResponse()
f = 'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz a\xcc\x88'.encode('latin-1') f = 'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz a\xcc\x88'.encode('latin-1')
f = f.decode('utf-8') f = f.decode('utf-8')
h['Content-Disposition'] = u'attachment; filename="%s"' % f h['Content-Disposition'] = 'attachment; filename="%s"' % f
def test_newlines_in_headers(self): def test_newlines_in_headers(self):
# Bug #10188: Do not allow newlines in headers (CR or LF) # Bug #10188: Do not allow newlines in headers (CR or LF)