Skip to content
Snippets Groups Projects
Commit eb79ae1a authored by Georges Racinet's avatar Georges Racinet
Browse files

wsgi: removing py3 specific code

We don't support Python3 at the time being, we'll jump into
Python3-only at some time in the (near) future.

With this, we have full coverage of the wsgi module.
Hence the tests will catch true problems, thanks to Py3
incompatibility between `bytes` and `str`. This is better than
adding a `pragma: no cover`.
parent 41c55fa9
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -149,9 +149,6 @@ ...@@ -149,9 +149,6 @@
# Re-parse the WSGI environment to take into account our # Re-parse the WSGI environment to take into account our
# repository path component. # repository path component.
uenv = req.rawenv uenv = req.rawenv
if pycompat.ispy3:
uenv = {k.decode('latin1'): v for k, v in
uenv.iteritems()}
req = requestmod.parserequestfromenv( req = requestmod.parserequestfromenv(
uenv, reponame=uri_path, uenv, reponame=uri_path,
altbaseurl=self.ui.config('web', 'baseurl'), altbaseurl=self.ui.config('web', 'baseurl'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment