jenkins-bot submitted this change.

View Change

Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
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(-)

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

To view, visit change 1228280. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I0709d0a18f1f18867d97cbf48f87e2762fe0ed10
Gerrit-Change-Number: 1228280
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot