From 63a901a25a1ade024fc3774c06fa951ad62b33e6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dan=20Michael=20O=2E=20Hegg=C3=B8?= <danmichaelo@gmail.com>
Date: Sun, 17 Feb 2019 23:54:12 +0100
Subject: [PATCH] [#214] Remove no-longer supported revision parameters

Breaking change: Remove the `expandtemplates` and `diffto` parameters
from the `Site.revisions()` method as these were deprecated in MediaWiki
1.30 and removed in 1.32.
---
 mwclient/client.py | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/mwclient/client.py b/mwclient/client.py
index dc790a9..a9301a0 100644
--- a/mwclient/client.py
+++ b/mwclient/client.py
@@ -953,8 +953,7 @@ class Site(object):
                                                    toponly='1' if toponly else None))
         return listing.List(self, 'recentchanges', 'rc', limit=limit, **kwargs)
 
-    def revisions(self, revids, prop='ids|timestamp|flags|comment|user',
-                  expandtemplates=False, diffto='prev'):
+    def revisions(self, revids, prop='ids|timestamp|flags|comment|user'):
         """Get data about a list of revisions.
 
         See also the `Page.revisions()` method.
@@ -969,10 +968,6 @@ class Site(object):
         Args:
             revids (list): A list of (max 50) revisions.
             prop (str): Which properties to get for each revision.
-            expandtemplates (bool): Expand templates in `rvprop=content` output.
-            diffto (str): Revision ID to diff each revision to. Use "prev",
-                          "next" and "cur" for the previous, next and current
-                          revision respectively.
 
         Returns:
             A list of revisions
@@ -982,10 +977,6 @@ class Site(object):
             'rvprop': prop,
             'revids': '|'.join(map(text_type, revids))
         }
-        if expandtemplates:
-            kwargs['rvexpandtemplates'] = '1'
-        if diffto:
-            kwargs['rvdiffto'] = diffto
 
         revisions = []
         pages = self.get('query', **kwargs).get('query', {}).get('pages', {}).values()
-- 
GitLab