jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/513027 )
Change subject: [cleanup] Simplify FormatDate ......................................................................
[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(-)
Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
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):