mirror of
https://github.com/django/django.git
synced 2025-08-02 10:02:41 +00:00
Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode().
This commit is contained in:
parent
21f13ff5b3
commit
500532c95d
32 changed files with 61 additions and 65 deletions
|
@ -81,7 +81,7 @@ class WSGIRequestHandlerTestCase(SimpleTestCase):
|
|||
'%s:%s' % (k, v) for k, v in environ.items()
|
||||
if k.startswith('HTTP_')
|
||||
)
|
||||
yield (','.join(http_environ_items)).encode('utf-8')
|
||||
yield (','.join(http_environ_items)).encode()
|
||||
|
||||
rfile = BytesIO()
|
||||
rfile.write(b"GET / HTTP/1.0\r\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue