From 4bd5523e1b35ded9b56ec39e3866f20dc511c586 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Tue, 11 Jul 2023 15:11:47 -0700 Subject: [PATCH] Locale: Fix unnecessary parens. --- gramps/gen/utils/maclocale.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/gen/utils/maclocale.py b/gramps/gen/utils/maclocale.py index 26c6bcbea..fb7f3018f 100644 --- a/gramps/gen/utils/maclocale.py +++ b/gramps/gen/utils/maclocale.py @@ -174,14 +174,14 @@ def mac_setup_localization(glocale): locale = _mac_get_gramps_defaults("Gramps", "AppleLocale") if locale: locale_values = _mac_check_locale(locale) - if (locale_values[0]): + if locale_values[0]: return locale_values LOG.debug("Gramps defaults locale %s isn't supported", locale) locale = _mac_get_gramps_defaults("Global", "AppleLocale") if locale: locale_values = _mac_check_locale(locale) - if (locale_values[0]): + if locale_values[0]: return locale_values LOG.debug("Global defaults locale %s isn't supported", locale) @@ -194,7 +194,7 @@ def mac_setup_localization(glocale): # The locale module can't deal with collation-qualified # locales and setting one blows up setlocale, so we use # $COLLATION directly instead. - if ('COLLATION') in os.environ: + if 'COLLATION' in os.environ: apple_collation = os.environ['COLLATION'] else: apple_collation = _mac_get_gramps_defaults("Gramps",