Xqt has uploaded a new change for review. https://gerrit.wikimedia.org/r/268885
Change subject: [IMPR] remove unused save method ...................................................................... [IMPR] remove unused save method Change-Id: I24b6aad7761be1bb2ca65a492ee705cf13da0765 --- M afd-notice.py 1 file changed, 0 insertions(+), 16 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/bots/xqbot refs/changes/85/268885/1 diff --git a/afd-notice.py b/afd-notice.py index 3843fca..96fb718 100644 --- a/afd-notice.py +++ b/afd-notice.py @@ -226,22 +226,6 @@ pywikibot.output(u'WARNING: Page %s not saved.' % talk.title(asLink=True)) - def load(self, page): - """ - Loads the given page, does some changes, and saves it. - """ - try: - # Load the page - text = page.text - except pywikibot.NoPage: - pywikibot.output(u"Page %s does not exist; skipping." - % page.title(asLink=True)) - except pywikibot.IsRedirectPage: - pywikibot.output(u"Page %s is a redirect; skipping." - % page.title(asLink=True)) - else: - return text - def save(self, text, page, comment=None, minorEdit=True, botflag=True): old = u'' -- To view, visit https://gerrit.wikimedia.org/r/268885 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I24b6aad7761be1bb2ca65a492ee705cf13da0765 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/bots/xqbot Gerrit-Branch: master Gerrit-Owner: Xqt <i...@gno.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits