jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/197901 )
Change subject: API help module support for 1.25+
......................................................................
API help module support for 1.25+
Add 'wrap' argument to force json output of help module.
This does not address the difference json results from
pre-1.25.
Bug: T93188
Change-Id: I14672494ec9e98fadec67785ce45a134f6af7321
---
M pywikibot/data/api.py
1 file changed, 5 insertions(+), 0 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py
index 741a75b..ebe9241 100644
--- a/pywikibot/data/api.py
+++ b/pywikibot/data/api.py
@@ -961,6 +961,11 @@
'rawcontinue' not in self._params and
MediaWikiVersion(self.site.version()) >=
MediaWikiVersion('1.25wmf5')):
self._params['rawcontinue'] = ['']
+ elif (self.action == 'help'
+ and MediaWikiVersion(self.site.version())
+ > MediaWikiVersion('1.24')):
+ self._params['wrap'] = ['']
+
if "maxlag" not in self._params and config.maxlag:
self._params["maxlag"] = [str(config.maxlag)]
if "format" not in self._params:
--
To view, visit
https://gerrit.wikimedia.org/r/197901
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I14672494ec9e98fadec67785ce45a134f6af7321
Gerrit-Change-Number: 197901
Gerrit-PatchSet: 3
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>