jenkins-bot merged this change.
[cleanup] Simplify FormatDate
'Day_' + enMonthNames is already given by dayMnthFmts list
Change-Id: Iac2aa2ab3a08004fb10e79cd9098ddb54a4796b1
---
M pywikibot/date.py
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pywikibot/date.py b/pywikibot/date.py
index bf05fc8..f5b65f4 100644
--- a/pywikibot/date.py
+++ b/pywikibot/date.py
@@ -2226,7 +2226,7 @@
def __call__(self, m, d):
"""Return a formatted month and day."""
- return formats['Day_' + enMonthNames[m - 1]][self.site.lang](d)
+ return formats[dayMnthFmts[m - 1]][self.site.lang](d)
def formatYear(lang, year):
To view, visit change 513027. To unsubscribe, or for help writing mail filters, visit settings.