Commit e1c67e1d authored by Vincent Pelletier's avatar Vincent Pelletier

wsgi: Improve coding style.

parent 6025562b
......@@ -169,8 +169,7 @@ class Application(object):
request_method = environ['REQUEST_METHOD']
if request_method == 'OPTIONS':
status = STATUS_NO_CONTENT
header_list = [
]
header_list = []
result = []
else:
try:
......@@ -198,11 +197,7 @@ class Application(object):
status = e.status
header_list = e.response_headers
result = [str(x) for x in e.args]
start_response(
status,
header_list + [
],
)
start_response(status, header_list)
return result
@staticmethod
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment