jenkins-bot submitted this change.

View Change

Approvals: Mpaa: Looks good to me, approved jenkins-bot: Verified
[cleanup] remove deprecated compat BasePage.getRestrictions method

Change-Id: Ia10b984125305d320454abec66bae8bc34b58afa
---
M pywikibot/page/__init__.py
1 file changed, 0 insertions(+), 8 deletions(-)

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):


To view, visit change 649406. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ia10b984125305d320454abec66bae8bc34b58afa
Gerrit-Change-Number: 649406
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Mpaa <mpaa.wiki@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged