jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/649406 )
Change subject: [cleanup] remove deprecated compat BasePage.getRestrictions method ......................................................................
[cleanup] remove deprecated compat BasePage.getRestrictions method
Change-Id: Ia10b984125305d320454abec66bae8bc34b58afa --- M pywikibot/page/__init__.py 1 file changed, 0 insertions(+), 8 deletions(-)
Approvals: Mpaa: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/page/__init__.py b/pywikibot/page/__init__.py index 9b8b067..36ed562 100644 --- a/pywikibot/page/__init__.py +++ b/pywikibot/page/__init__.py @@ -2143,14 +2143,6 @@ return '{}://{}'.format(wiki.protocol(), link) return link
-# ####### DEPRECATED METHODS ######## - - @deprecated('Page.protection()', since='20150725', future_warning=True) - def getRestrictions(self): # pragma: no cover - """DEPRECATED. Use self.protection() instead.""" - restrictions = self.protection() - return {k: list(restrictions[k]) for k in restrictions} -
class Page(BasePage):
pywikibot-commits@lists.wikimedia.org