Skip to content

Commit

Permalink
reformatting for black tool.
Browse files Browse the repository at this point in the history
  • Loading branch information
SNoiraud committed Nov 2, 2023
1 parent 67feda8 commit 03122ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gramps/gen/lib/date.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 03122ba

Please sign in to comment.