jenkins-bot has submitted this change and it was merged.
Change subject: pep8-ified botirc.py ......................................................................
pep8-ified botirc.py
Change-Id: Iec4d4bed80318a15ee53f2af5ac8ea1dbb0dc4e0 --- M pywikibot/botirc.py 1 file changed, 5 insertions(+), 4 deletions(-)
Approvals: Legoktm: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/botirc.py b/pywikibot/botirc.py index 7dd0897..bda0284 100644 --- a/pywikibot/botirc.py +++ b/pywikibot/botirc.py @@ -18,7 +18,8 @@ # scripts, instead of writing each one from scratch.
-import logging, logging.handlers +import logging +import logging.handlers # all output goes thru python std library "logging" module import re
@@ -82,12 +83,12 @@ if not ('N' in match.group('flags')): return try: - msg = unicode(e.arguments()[0],'utf-8') + msg = unicode(e.arguments()[0], 'utf-8') except UnicodeDecodeError: return if self.other_ns.match(msg): return - name = msg[8:msg.find(u'14',9)] + name = msg[8:msg.find(u'14', 9)] text = pywikibot.comms.http.request(self.site, self.api_url) entry = self.api_found.findall(text) page = pywikibot.Page(self.site, name) @@ -97,7 +98,7 @@ return except pywikibot.IsRedirectPage: return - pywikibot.output(str(( entry[0], name ))) + pywikibot.output(str((entry[0], name)))
def on_dccmsg(self, c, e): pass
pywikibot-commits@lists.wikimedia.org