jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/361387 )
Change subject: [bugfix] login.py: Don't show warnings for comments in password file
......................................................................
[bugfix] login.py: Don't show warnings for comments in password file
Bug: T168806
Change-Id: I15ad7f212bcf285b67f7697cfa494e0653737c4a
---
M pywikibot/login.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/login.py b/pywikibot/login.py
index 478cb20..0a0d4c5 100644
--- a/pywikibot/login.py
+++ b/pywikibot/login.py
@@ -251,7 +251,7 @@
line_nr = len(lines) + 1
for line in reversed(lines):
line_nr -= 1
- if not line.strip():
+ if not line.strip() or line.startswith('#'):
continue
try:
entry = eval(line)
--
To view, visit
https://gerrit.wikimedia.org/r/361387
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I15ad7f212bcf285b67f7697cfa494e0653737c4a
Gerrit-Change-Number: 361387
Gerrit-PatchSet: 5
Gerrit-Owner: Framawiki <framawiki(a)tools.wmflabs.org>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: Framawiki <framawiki(a)tools.wmflabs.org>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>