jenkins-bot has submitted this change and it was merged.
Change subject: Remove page.QueryPage ......................................................................
Remove page.QueryPage
QueryPage is not implemented in Wikibase yet, there are no uses of a stub class in pywikibot, and there is no novel code in this stub that warrants keeping while we wait for the functionality to exist in the Wikibase software.
Change-Id: I9bcdb022c7e7e4db2d24327a29531e417c16ce76 --- M pywikibot/page.py 1 file changed, 0 insertions(+), 16 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py index d35de4f..5d5114a 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -3149,22 +3149,6 @@ return Claim(self.site, self.getID(), *args, **kwargs)
-class QueryPage(WikibasePage): - - """ - A Wikibase Query entity. - - For future usage, not implemented yet. - """ - - def __init__(self, site, title): - """Constructor.""" - WikibasePage.__init__(self, site, title, ns=122) - self.id = self.title(withNamespace=False).upper() - if not self.id.startswith(u'U'): - raise ValueError(u"'%s' is not a query page!" % self.title()) - - class Claim(Property):
"""
pywikibot-commits@lists.wikimedia.org