jenkins-bot has submitted this change and it was merged.
Change subject: [BUGFIX] Fix import order due to enable import BeautifullSoup module ......................................................................
[BUGFIX] Fix import order due to enable import BeautifullSoup module
BS is imported via wikipedia.py thus this must file be imported first ( This partially reverts importing parts changed by following: https://gerrit.wikimedia.org/r/#/c/97019/ https://gerrit.wikimedia.org/r/#/c/96381/ )
Change-Id: Ib339a08ef94346008aeaeeb05308769ab32372a6 --- M reflinks.py 1 file changed, 5 insertions(+), 6 deletions(-)
Approvals: Ladsgroup: Looks good to me, approved jenkins-bot: Verified
diff --git a/reflinks.py b/reflinks.py index e49172d..5627458 100644 --- a/reflinks.py +++ b/reflinks.py @@ -51,9 +51,8 @@ import os import gzip import StringIO -import externals -from BeautifulSoup import UnicodeDammit import wikipedia as pywikibot +from BeautifulSoup import UnicodeDammit import pagegenerators import noreferences from pywikibot import i18n @@ -464,16 +463,16 @@ page.put(new, self.msg) except pywikibot.EditConflict: pywikibot.output(u'Skipping %s because of edit conflict' - % (page.title(),)) + % page.title()) except pywikibot.SpamfilterError, e: pywikibot.output( u'Cannot change %s because of blacklist entry %s' % (page.title(), e.url)) except pywikibot.PageNotSaved, error: - pywikibot.error(u'putting page: %s' % (error.args,)) + pywikibot.error(u'putting page: %s' % error.args) except pywikibot.LockedPage: pywikibot.output(u'Skipping %s (locked page)' - % (page.title(),)) + % page.title()) except pywikibot.ServerError, e: pywikibot.output(u'Server Error : %s' % e)
@@ -532,7 +531,7 @@ new_text = page.get() if not page.canBeEdited(): pywikibot.output(u"You can't edit page %s" - % page.title(asLink=True)) + % page.title(asLink=True)) continue except pywikibot.NoPage: pywikibot.output(u'Page %s not found' % page.title(asLink=True))
pywikibot-commits@lists.wikimedia.org