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:
pywikibot-commits@lists.wikimedia.org