jenkins-bot has submitted this change and it was merged.

Change subject: Remove unsupported methods from version 1
......................................................................


Remove unsupported methods from version 1

After so long time of rewrite/core release it is no longer needed
to raise NotImplementedError. Raising AttributeError will do the job
too.

Change-Id: Iecb5f60b152c5cd4ed23ce6862da789707616b44
---
M pywikibot/site.py
1 file changed, 0 insertions(+), 149 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/site.py b/pywikibot/site.py
index bbacf31..db7c13e 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -537,155 +537,6 @@
         """DEPRECATED"""
         return self.getUrl(address, data=data)
 
-    # unsupported methods from version 1
-
-    def checkCharset(self, charset):
-        raise NotImplementedError
-
-    def getToken(self, getalways=True, getagain=False, sysop=False):
-        raise NotImplementedError
-
-    def export_address(self):
-        raise NotImplementedError
-
-    def move_address(self):
-        raise NotImplementedError
-
-    def delete_address(self, s):
-        raise NotImplementedError
-
-    def undelete_view_address(self, s, ts=''):
-        raise NotImplementedError
-
-    def undelete_address(self):
-        raise NotImplementedError
-
-    def protect_address(self, s):
-        raise NotImplementedError
-
-    def unprotect_address(self, s):
-        raise NotImplementedError
-
-    def put_address(self, s):
-        raise NotImplementedError
-
-    def get_address(self, s):
-        raise NotImplementedError
-
-    def edit_address(self, s):
-        raise NotImplementedError
-
-    def purge_address(self, s):
-        raise NotImplementedError
-
-    def block_address(self):
-        raise NotImplementedError
-
-    def unblock_address(self):
-        raise NotImplementedError
-
-    def blocksearch_address(self, s):
-        raise NotImplementedError
-
-    def linksearch_address(self, s, limit=500, offset=0):
-        raise NotImplementedError
-
-    def search_address(self, q, n=50, ns=0):
-        raise NotImplementedError
-
-    def allpages_address(self, s, ns=0):
-        raise NotImplementedError
-
-    def log_address(self, n=50, mode='', user=''):
-        raise NotImplementedError
-
-    def newpages_address(self, n=50, namespace=0):
-        raise NotImplementedError
-
-    def longpages_address(self, n=500):
-        raise NotImplementedError
-
-    def shortpages_address(self, n=500):
-        raise NotImplementedError
-
-    def unusedfiles_address(self, n=500):
-        raise NotImplementedError
-
-    def categories_address(self, n=500):
-        raise NotImplementedError
-
-    def deadendpages_address(self, n=500):
-        raise NotImplementedError
-
-    def ancientpages_address(self, n=500):
-        raise NotImplementedError
-
-    def lonelypages_address(self, n=500):
-        raise NotImplementedError
-
-    def protectedpages_address(self, n=500):
-        raise NotImplementedError
-
-    def unwatchedpages_address(self, n=500):
-        raise NotImplementedError
-
-    def uncategorizedcategories_address(self, n=500):
-        raise NotImplementedError
-
-    def uncategorizedimages_address(self, n=500):
-        raise NotImplementedError
-
-    def uncategorizedpages_address(self, n=500):
-        raise NotImplementedError
-
-    def uncategorizedtemplates_address(self, n=500):
-        raise NotImplementedError
-
-    def unusedcategories_address(self, n=500):
-        raise NotImplementedError
-
-    def wantedcategories_address(self, n=500):
-        raise NotImplementedError
-
-    def withoutinterwiki_address(self, n=500):
-        raise NotImplementedError
-
-    def references_address(self, s):
-        raise NotImplementedError
-
-    def allmessages_address(self):
-        raise NotImplementedError
-
-    def upload_address(self):
-        raise NotImplementedError
-
-    def double_redirects_address(self, default_limit=True):
-        raise NotImplementedError
-
-    def broken_redirects_address(self, default_limit=True):
-        raise NotImplementedError
-
-    def random_address(self):
-        raise NotImplementedError
-
-    def randomredirect_address(self):
-        raise NotImplementedError
-
-    def login_address(self):
-        raise NotImplementedError
-
-    def captcha_image_address(self, id):
-        raise NotImplementedError
-
-    def watchlist_address(self):
-        raise NotImplementedError
-
-    def contribs_address(self, target, limit=500, offset=''):
-        raise NotImplementedError
-
-    def globalusers_address(self, target='', limit=500, offset='', group=''):
-        raise NotImplementedError
-
 
 def must_be(group=None, right=None):
     """ Decorator to require a certain user status. For now, only the values

-- 
To view, visit https://gerrit.wikimedia.org/r/129943
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iecb5f60b152c5cd4ed23ce6862da789707616b44
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Pyfisch <[email protected]>
Gerrit-Reviewer: Russell Blau <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to