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)
pywikibot-commits@lists.wikimedia.org