From f3929848c5c79d39658d48256ec6caf4647599a6 Mon Sep 17 00:00:00 2001 From: Chris Warrick Date: Tue, 31 Jul 2018 11:00:32 +0200 Subject: [PATCH] =?UTF-8?q?Avoid=20naming=20variable=20=E2=80=9Cformat?= =?UTF-8?q?=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Chris Warrick --- nikola/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nikola/utils.py b/nikola/utils.py index 80603f66ab..3f02f88fba 100644 --- a/nikola/utils.py +++ b/nikola/utils.py @@ -1221,11 +1221,11 @@ def date_formatter(match: 'typing.re.Match') -> str: if custom_format: return babel.dates.format_date(date, custom_format, locale) else: - function, format = modes[mode] + function, fmt = modes[mode] if function == 'skeleton': - return babel.dates.format_skeleton(format, date, locale=locale) + return babel.dates.format_skeleton(fmt, date, locale=locale) else: - return babel.dates.format_date(date, format, locale) + return babel.dates.format_date(date, fmt, locale) return re.sub(r'{(.*?)(?::(.*?))?}', date_formatter, message)