jenkins-bot has submitted this change and it was merged.
Change subject: Remove deprecated getTemplates() arg tllimit
......................................................................
Remove deprecated getTemplates() arg tllimit
Also replace last usage of the deprecated method.
Change-Id: Ic939a3d321c3b71a387f5876ca0b3e0e294dfb01
---
M pywikibot/page.py
M scripts/checkimages.py
2 files changed, 2 insertions(+), 2 deletions(-)
Approvals:
John Vandenberg: Looks good to me, but someone else must approve
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py
index 1d4c643..bb2caf0 100644
--- a/pywikibot/page.py
+++ b/pywikibot/page.py
@@ -1094,7 +1094,7 @@
@deprecate_arg('tllimit', None)
@deprecated("Page.templates()")
- def getTemplates(self, tllimit=5000):
+ def getTemplates(self):
return self.templates()
def templates(self, content=False):
diff --git a/scripts/checkimages.py b/scripts/checkimages.py
index d79d3ac..bd9ee9d 100644
--- a/scripts/checkimages.py
+++ b/scripts/checkimages.py
@@ -957,7 +957,7 @@
if commons_image_with_this_hash and \
commons_image_with_this_hash is not 'None':
servTMP = pywikibot.translate(self.site, serviceTemplates)
- templatesInTheImage = self.image.getTemplates()
+ templatesInTheImage = self.image.templates()
if servTMP is not None:
for template in servTMP:
if pywikibot.Page(self.site,
--
To view, visit
https://gerrit.wikimedia.org/r/145858
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic939a3d321c3b71a387f5876ca0b3e0e294dfb01
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>