jenkins-bot merged this change.

View Change

Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
[bugfix] Fix _formatLimit_MonthOfYear

Limit is given as 1900 but not recognized by predicate

Change-Id: I72495c1d31774a76880f1e7ebfc60a116ad8cc35
---
M pywikibot/date.py
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pywikibot/date.py b/pywikibot/date.py
index bf05fc8..a9ffd56 100644
--- a/pywikibot/date.py
+++ b/pywikibot/date.py
@@ -2152,7 +2152,7 @@
}

# All month of year articles are in the same format
-_formatLimit_MonthOfYear = (lambda v: 1 <= 1900 and v < 2051, 1900, 2051)
+_formatLimit_MonthOfYear = (lambda v: 1900 <= v < 2051, 1900, 2051)
for month in yrMnthFmts:
formatLimits[month] = _formatLimit_MonthOfYear


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

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I72495c1d31774a76880f1e7ebfc60a116ad8cc35
Gerrit-Change-Number: 513031
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Dalba <dalba.wiki@gmail.com>
Gerrit-Reviewer: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: jenkins-bot (75)