jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[cleanup] cleanup exceptions.py & login.py in pywikibot/

- remove preleading harmless "u" from comments
- remove some very old commented out code

Change-Id: I3d6dff28e7105eefe5f326165a18cab09998b4d6
---
M pywikibot/exceptions.py
M pywikibot/login.py
2 files changed, 1 insertion(+), 13 deletions(-)

diff --git a/pywikibot/exceptions.py b/pywikibot/exceptions.py
index 98e4fd5..92a0a2e 100644
--- a/pywikibot/exceptions.py
+++ b/pywikibot/exceptions.py
@@ -143,7 +143,7 @@

# Preformatted UNICODE message where the page title will be inserted
# Override this in subclasses.
- # u"Oh noes! Page %s is too funky, we should not delete it ;("
+ # 'Oh noes! Page %s is too funky, we should not delete it ;('
message = None

def __init__(self, page, message=None):
diff --git a/pywikibot/login.py b/pywikibot/login.py
index a17c230..0f54a60 100644
--- a/pywikibot/login.py
+++ b/pywikibot/login.py
@@ -335,18 +335,6 @@
return False
self.storecookiedata(cookiedata)
pywikibot.log('Should be logged in now')
-# # Show a warning according to the local bot policy
-# FIXME: disabled due to recursion; need to move this to the Site object
-# after login
-# if not self.botAllowed():
-# logger.error(
-# u"Username '%(name)s' is not listed on [[%(page)s]]."
-# % {'name': self.username,
-# 'page': botList[self.site.family.name][self.site.code]})
-# logger.error(
-# "Please make sure you are allowed to use the robot before actually using it!"
-# )
-# return False
return True

def showCaptchaWindow(self, url):

To view, visit change 463720. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I3d6dff28e7105eefe5f326165a18cab09998b4d6
Gerrit-Change-Number: 463720
Gerrit-PatchSet: 3
Gerrit-Owner: D3r1ck01 <alangiderick@gmail.com>
Gerrit-Reviewer: D3r1ck01 <alangiderick@gmail.com>
Gerrit-Reviewer: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot (75)