mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
Cosmetic changes
This commit is contained in:
parent
e07df9fd1d
commit
866aa34f54
7 changed files with 19 additions and 23 deletions
|
@ -62,7 +62,7 @@ class BaseTest:
|
|||
args["REQUEST_METHOD"] = method.upper()
|
||||
args["PATH_INFO"] = path
|
||||
if data:
|
||||
data = data.encode("utf-8")
|
||||
data = data.encode()
|
||||
args["wsgi.input"] = BytesIO(data)
|
||||
args["CONTENT_LENGTH"] = str(len(data))
|
||||
args["wsgi.errors"] = sys.stderr
|
||||
|
@ -75,4 +75,4 @@ class BaseTest:
|
|||
answer = self.application(args, start_response)
|
||||
|
||||
return (int(status.split()[0]), dict(headers),
|
||||
answer[0].decode("utf-8") if answer else None)
|
||||
answer[0].decode() if answer else None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue