Skip to content

Commit 5ff7f74

Browse files
committed
style fix
1 parent 9150cfa commit 5ff7f74

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

azure/functions/_http_wsgi.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ def __init__(self,
2929
# Implement interfaces for PEP 3333 environ
3030
self.request_method = getattr(func_req, 'method', None)
3131
self.script_name = ''
32-
self.path_info = unquote_to_bytes(
33-
getattr(url, 'path', None)).decode('latin-1'
34-
if type(self) is WsgiRequest
35-
else 'utf-8') # type: ignore
32+
self.path_info = unquote_to_bytes(getattr(url, 'path', None)).decode(
33+
'latin-1' if type(self) is WsgiRequest else 'utf-8'
34+
)
3635

3736
self.query_string = getattr(url, 'query', None)
3837
self.content_type = self._lowercased_headers.get('content-type')

0 commit comments

Comments
 (0)