jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/606942 )
Change subject: [cleanup] deprecate Page.isEmpty without 'instead' parameter ......................................................................
[cleanup] deprecate Page.isEmpty without 'instead' parameter
Page.isEmpty is already deprecated for 5 years. But it is senseless to refer to a script function as an alternative.
Bug: T112340 Change-Id: If87937fa7d63f3073820889e3334b64baca6fbdb --- M pywikibot/page/__init__.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Dvorapa: Looks good to me, but someone else must approve Matěj Suchánek: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/page/__init__.py b/pywikibot/page/__init__.py index acf6a99..64a2253 100644 --- a/pywikibot/page/__init__.py +++ b/pywikibot/page/__init__.py @@ -893,7 +893,7 @@ return Category(Link(self._catredirect, self.site)) raise pywikibot.IsNotRedirectPage(self)
- @deprecated('interwiki.page_empty_check(page)', since='20151207') + @deprecated(since='20151207') def isEmpty(self): """ Return True if the page text has less than 4 characters.
pywikibot-commits@lists.wikimedia.org