From 03122ba1941aee23cbe8083fb4eede23639f90ee Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Thu, 2 Nov 2023 11:59:11 +0100 Subject: [PATCH] reformatting for black tool. --- gramps/gen/lib/date.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps/gen/lib/date.py b/gramps/gen/lib/date.py index 5346883429f..8820dbb9d0f 100644 --- a/gramps/gen/lib/date.py +++ b/gramps/gen/lib/date.py @@ -457,7 +457,9 @@ def _format(self, diff_tuple, dlocale=glocale): ).format(number_of=diff_tuple[0]) detail += 1 if self.precision == detail: - if diff_tuple[1] >= 6 and config.get("preferences.age-rounded-year"): # round up years + if diff_tuple[1] >= 6 and config.get( + "preferences.age-rounded-year" + ): # round up years # Translators: leave all/any {...} untranslated retval = ngettext( "{number_of} year", "{number_of} years", diff_tuple[0] + 1