From bdcb0c7a1a0ea9556a8c39614645647d2772e052 Mon Sep 17 00:00:00 2001 From: Dominik George <nik@naturalnet.de> Date: Tue, 14 Jan 2020 20:01:59 +0100 Subject: [PATCH] Reformat code with black --- calendarweek/django.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/calendarweek/django.py b/calendarweek/django.py index 69b6831..0692ff3 100644 --- a/calendarweek/django.py +++ b/calendarweek/django.py @@ -82,13 +82,15 @@ def i18n_json_data(request: HttpRequest) -> JsonResponse: """ Deliver a JSON file containing JS representations of the current locale's calendar translations. """ - return JsonResponse({ - "day_names": i18n_day_names(), - "day_abbrs": i18n_day_abbrs(), - "month_names": i18n_month_names(), - "month_abbrs": i18n_month_abbrs(), - }) - + return JsonResponse( + { + "day_names": i18n_day_names(), + "day_abbrs": i18n_day_abbrs(), + "month_names": i18n_month_names(), + "month_abbrs": i18n_month_abbrs(), + } + ) + i18n_day_names_lazy = lazy(i18n_day_names, tuple) i18n_day_abbrs_lazy = lazy(i18n_day_abbrs, tuple) -- GitLab