Skip to content

Commit 2106999

Browse files
committed
fix
1 parent cf7b21d commit 2106999

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

azure/functions/_http_wsgi.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +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(getattr(url, 'path', None)).decode( #ignore
33-
'latin-1' if type(self) is WsgiRequest else 'utf-8'
32+
self.path_info = (
33+
unquote_to_bytes(getattr(url, 'path', None)) # type: ignore
34+
.decode('latin-1' if type(self) is WsgiRequest else 'utf-8')
3435
)
3536

3637
self.query_string = getattr(url, 'query', None)

0 commit comments

Comments
 (0)