John Vandenberg has uploaded a new change for review.
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.
Change-Id: I14672494ec9e98fadec67785ce45a134f6af7321
---
M pywikibot/data/api.py
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/01/197901/1
diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py
index 741a75b..3c1d245 100644
--- a/pywikibot/data/api.py
+++ b/pywikibot/data/api.py
@@ -961,6 +961,10 @@
'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-MessageType: newchange
Gerrit-Change-Id: I14672494ec9e98fadec67785ce45a134f6af7321
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits