jenkins-bot has submitted this change and it was merged.
Change subject: Mark page.undelete as not implemented.
......................................................................
Mark page.undelete as not implemented.
Bug: 72733
Change-Id: I9d03dd3fe23dfd6bc8487072690b0854ab9a78cd
---
M pywikibot/page.py
1 file changed, 4 insertions(+), 6 deletions(-)
Approvals:
Nullzero: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py
index c7ac243..961fe6f 100644
--- a/pywikibot/page.py
+++ b/pywikibot/page.py
@@ -1560,6 +1560,8 @@
def undelete(self, comment=None):
"""Undelete revisions based on the markers set by previous calls.
+ NOT IMPLEMENTED.
+
If no calls have been made since loadDeletedRevisions(), everything
will be restored.
@@ -1579,12 +1581,8 @@
@param comment: The undeletion edit summary.
@type comment: basestring
"""
- if comment is None:
- pywikibot.output(u'Preparing to undelete %s.'
- % (self.title(asLink=True)))
- comment = pywikibot.input(
- u'Please enter a reason for the undeletion:')
- return self.site.undelete(self, comment)
+ # FIXME: Site.undelete needs to be implemented.
+ raise NotImplementedError('Page.undelete is not implemented.')
@deprecate_arg("throttle", None)
def protect(self, edit=False, move=False, create=None, upload=None,
--
To view, visit https://gerrit.wikimedia.org/r/172116
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I9d03dd3fe23dfd6bc8487072690b0854ab9a78cd
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Nullzero <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits