jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1228280?usp=email )
Change subject: doc: Update documentation for api.Request ......................................................................
doc: Update documentation for api.Request
This is a follow-up patch for I1234567890abcdef1234567890abcdef12345678
Bug: T414369 Change-Id: I0709d0a18f1f18867d97cbf48f87e2762fe0ed10 --- M pywikibot/data/api/_requests.py 1 file changed, 9 insertions(+), 2 deletions(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/pywikibot/data/api/_requests.py b/pywikibot/data/api/_requests.py index fe20032..7891757 100644 --- a/pywikibot/data/api/_requests.py +++ b/pywikibot/data/api/_requests.py @@ -706,6 +706,10 @@ content. .. versionchanged:: 9.2 no wait cycles for :exc:`ImportError` and :exc:`NameError`. + .. versionchanged:: 11.0 + The scheme swapping introduced in version 8.2 was removed. + Any :class:`Family<family.Family>` file must provide a + correct :meth:`protocol()<family.Family.protocol>` method.
:param use_get: If True, send a GET request; otherwise send POST. :param uri: The URI path to request on the site. @@ -773,8 +777,11 @@ """Return a dict from requests.Response.
.. versionchanged:: 8.2 - show a warning to add a ``protocol()`` method to the family - file if suitable. + show a warning to add a :meth:`protocol() + <family.Family.protocol>` method to the family file if suitable. + .. versionchanged:: 11.0 + The warning about missing or wrong ``protocol()`` method + introduced in version 8.2 was removed.
:param response: a requests.Response object :type response: requests.Response
pywikibot-commits@lists.wikimedia.org