mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Refs #36500 -- Rewrapped long docstrings and block comments via a script.
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
This commit is contained in:
@@ -320,8 +320,8 @@ class HttpResponseTests(SimpleTestCase):
|
||||
self.assertEqual(r.headers["key"], "=?utf-8?b?4oCg?=")
|
||||
self.assertIn(b"=?utf-8?b?4oCg?=", r.serialize_headers())
|
||||
|
||||
# The response also converts string or bytes keys to strings, but requires
|
||||
# them to contain ASCII
|
||||
# The response also converts string or bytes keys to strings, but
|
||||
# requires them to contain ASCII
|
||||
r = HttpResponse()
|
||||
del r.headers["Content-Type"]
|
||||
r.headers["foo"] = "bar"
|
||||
@@ -350,8 +350,8 @@ class HttpResponseTests(SimpleTestCase):
|
||||
f = b"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz a\xcc\x88"
|
||||
f = f.decode("utf-8")
|
||||
h.headers["Content-Disposition"] = 'attachment; filename="%s"' % f
|
||||
# This one is triggering https://bugs.python.org/issue20747, that is Python
|
||||
# will itself insert a newline in the header
|
||||
# This one is triggering https://bugs.python.org/issue20747, that is
|
||||
# Python will itself insert a newline in the header
|
||||
h.headers["Content-Disposition"] = (
|
||||
'attachment; filename="EdelRot_Blu\u0308te (3)-0.JPG"'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user