jenkins-bot merged this change.

View Change

Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
[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.

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