jenkins-bot merged this change.
[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.