jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/462148 )
Change subject: Use 'rvslots' when fetching categorymember() content on MW 1.32+ ......................................................................
Use 'rvslots' when fetching categorymember() content on MW 1.32+
This is a temporary workaround to silence the API warnings. We perhaps need to update the Revision class for other slot types in the future.
Bug: T200955 Change-Id: I842afdbbe659d17522697164d3dd216ae0860819 --- M pywikibot/site.py 1 file changed, 2 insertions(+), 0 deletions(-)
Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py index c4a97e5..286f213 100644 --- a/pywikibot/site.py +++ b/pywikibot/site.py @@ -4002,6 +4002,8 @@ elif endsort: raise ValueError("categorymembers: " "invalid combination of 'sortby' and 'endsort'") + if content and self.mw_version >= '1.32': + cmargs['rvslots'] = '*'
return self._generator(api.PageGenerator, namespaces=namespaces, total=total, g_content=content, **cmargs)