Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1217148?usp=email )

Change subject: [10.7.3] Publish Pywikibot 10.7.4 stable release
......................................................................

[10.7.3] Publish Pywikibot 10.7.4 stable release

Backports to stable release:
- Fix extracting password line

Bug: T412191
Change-Id: Ie598d05041875a45aa98bee83919b585a92a911a
---
M HISTORY.rst
M ROADMAP.rst
M pywikibot/__metadata__.py
M pywikibot/login.py
4 files changed, 11 insertions(+), 4 deletions(-)

Approvals:
  Xqt: Verified; Looks good to me, approved




diff --git a/HISTORY.rst b/HISTORY.rst
index 1e04bbc..1815f27 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -1,6 +1,14 @@
 Release History
 ===============

+10.7.3
+------
+*10 December 2025*
+
+* Fix extracting password line (:phab:`T412074`)
+* Add generated password file to gitignore list (:phab:`T411966`, 
:phab:`T410753`)
+
+
 10.7.2
 ------
 *28 November 2025*
diff --git a/ROADMAP.rst b/ROADMAP.rst
index 4ecc0ea..a8fb05e 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,8 +1,7 @@
 Current Release Changes
 =======================

-* Fix extracting password line (:phab:`T412074`)
-* Add generated password file to gitignore list (:phab:`T411966`, 
:phab:`T410753`)
+* Fix extracting password line (:phab:`T412191`)


 Deprecations
diff --git a/pywikibot/__metadata__.py b/pywikibot/__metadata__.py
index 4c8ab32..6879f06 100644
--- a/pywikibot/__metadata__.py
+++ b/pywikibot/__metadata__.py
@@ -12,6 +12,6 @@
 from time import strftime


-__version__ = '10.7.3'
+__version__ = '10.7.4'
 __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 f55a864..56b902a 100644
--- a/pywikibot/login.py
+++ b/pywikibot/login.py
@@ -263,7 +263,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/+/1217148?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: stable
Gerrit-Change-Id: Ie598d05041875a45aa98bee83919b585a92a911a
Gerrit-Change-Number: 1217148
Gerrit-PatchSet: 2
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]

Reply via email to