Mercurial > hg
diff tests/test-wsgirequest.py @ 36911:f0a851542a05
hgweb: remove wsgirequest (API)
Good riddance.
.. api::
The old ``wsgirequest`` class for handling everything WSGI in hgweb
has been replaced by separate request and response types. Various
high-level functions in the hgweb WSGI applications now receive
these new types as arguments instead of the old ``wsgirequest``
type.
Differential Revision: https://phab.mercurial-scm.org/D2832
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 11 Mar 2018 16:29:54 -0700 |
parents | 219b23359f4c |
children | 1859b9a7ddef |
line wrap: on
line diff
--- a/tests/test-wsgirequest.py Sat Mar 10 15:24:24 2018 +0530 +++ b/tests/test-wsgirequest.py Sun Mar 11 16:29:54 2018 -0700 @@ -23,11 +23,11 @@ r'wsgi.run_once': False, } -def parse(env, bodyfh=None, reponame=None, altbaseurl=None, extra=None): +def parse(env, reponame=None, altbaseurl=None, extra=None): env = dict(env) env.update(extra or {}) - return requestmod.parserequestfromenv(env, bodyfh, reponame=reponame, + return requestmod.parserequestfromenv(env, reponame=reponame, altbaseurl=altbaseurl) class ParseRequestTests(unittest.TestCase):