Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1217153?usp=email )
Change subject: Fix extracting password line ...................................................................... Fix extracting password line Bug: T412191 Change-Id: Ie89309c4cf106443744c436c5f6129aa968b72e5 --- M HISTORY.rst M pywikibot/__metadata__.py M pywikibot/login.py 3 files changed, 9 insertions(+), 2 deletions(-) Approvals: Xqt: Verified; Looks good to me, approved diff --git a/HISTORY.rst b/HISTORY.rst index 94fd53a..4736e14 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,6 +1,13 @@ Release History =============== +10.7.4 +------ +*10 December 2025* + +* Fix extracting password line (:phab:`T412191`) + + 10.7.3 ------ *10 December 2025* diff --git a/pywikibot/__metadata__.py b/pywikibot/__metadata__.py index 1696741..afb0c0e 100644 --- a/pywikibot/__metadata__.py +++ b/pywikibot/__metadata__.py @@ -12,6 +12,6 @@ from time import strftime -__version__ = '11.0.0.dev3' +__version__ = '11.0.0.dev4' __url__ = 'https://www.mediawiki.org/wiki/Manual:Pywikibot' __copyright__ = f'2003-{strftime("%Y")}, Pywikibot team' diff --git a/pywikibot/login.py b/pywikibot/login.py index eefb39d..4565fec 100644 --- a/pywikibot/login.py +++ b/pywikibot/login.py @@ -262,7 +262,7 @@ continue # sanity check - if (line.count(',') > 3 or len(line) > 250) and not TEST_RUNNING: + if (line.count(', ') > 4 or len(line) > 250) and not TEST_RUNNING: raise ValueError('Password line too long or too complex') botpassword = 'BotPassword' in line -- To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1217153?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Change-Id: Ie89309c4cf106443744c436c5f6129aa968b72e5 Gerrit-Change-Number: 1217153 Gerrit-PatchSet: 1 Gerrit-Owner: Xqt <[email protected]> Gerrit-Reviewer: Xqt <[email protected]> Gerrit-Reviewer: jenkins-bot
_______________________________________________ Pywikibot-commits mailing list -- [email protected] To unsubscribe send an email to [email protected]
