jenkins-bot has submitted this change and it was merged.
Change subject: Remove unused method load() ......................................................................
Remove unused method load()
Change-Id: Iae6be61f35adf52bec2b3dd0f1b63caef7911eea --- M commonscat.py 1 file changed, 0 insertions(+), 14 deletions(-)
Approvals: Ladsgroup: Looks good to me, approved jenkins-bot: Verified
diff --git a/commonscat.py b/commonscat.py index d8e1791..4cdc2ef 100644 --- a/commonscat.py +++ b/commonscat.py @@ -253,20 +253,6 @@ (status, always) = self.addCommonscat(page) return
- def load(self, page): - """ Loads the given page, does some changes, and saves it. """ - try: - text = page.get() - 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 - return None - def save(self, text, page, comment, minorEdit=True, botflag=True): # only save if something was changed if text != page.get():