jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/358000 )
Change subject: Code cleanup
......................................................................
Code cleanup
- Remove deprecated method which is no longer used.
It is not needed to deprecate it for scripts which isn't derived anywhere.
Change-Id: I51c6492eef82af9f68b730d941797ad7f148d079
---
M scripts/checkimages.py
1 file changed, 1 insertion(+), 9 deletions(-)
Approvals:
Mpaa: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/checkimages.py b/scripts/checkimages.py
index 10f6599..7b22ade 100755
--- a/scripts/checkimages.py
+++ b/scripts/checkimages.py
@@ -102,7 +102,7 @@
from pywikibot.exceptions import ArgumentDeprecationWarning, NotEmailableError
from pywikibot.family import Family
-from pywikibot.tools import deprecated, issue_deprecation_warning, StringTypes
+from pywikibot.tools import issue_deprecation_warning
###############################################################################
# <--------------------------- Change only below! --------------------------->#
@@ -828,14 +828,6 @@
# find the oldest image
sec, image = max(listGiven, key=lambda element: element[0])
return image
-
- @deprecated('Page.revision_count()')
- def countEdits(self, pagename, userlist):
- """Function to count the edit of a user or a list of users in a
page."""
- if isinstance(userlist, StringTypes):
- userlist = [userlist]
- page = pywikibot.Page(self.site, pagename)
- return page.revision_count(userlist)
def checkImageOnCommons(self):
"""Checking if the file is on commons."""
--
To view, visit
https://gerrit.wikimedia.org/r/358000
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I51c6492eef82af9f68b730d941797ad7f148d079
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>