From 89ec65cf2dda22a4f2dba2d4d877dcf13c14d7c3 Mon Sep 17 00:00:00 2001 From: yatingw Date: Thu, 28 Dec 2023 13:19:59 -0800 Subject: [PATCH] fix the issue of not able to run python3.10. Learned from https://github.com/ejwa/gitinspector/issues/226#issuecomment-1372709359 --- gitinspector/localization.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gitinspector/localization.py b/gitinspector/localization.py index ceac0a79..88ccea98 100644 --- a/gitinspector/localization.py +++ b/gitinspector/localization.py @@ -68,7 +68,7 @@ def init(): __enabled__ = True __installed__ = True - __translation__.install(True) + __translation__.install(None) def check_compatibility(version): if isinstance(__translation__, gettext.GNUTranslations): @@ -93,7 +93,7 @@ def get_date(): def enable(): if isinstance(__translation__, gettext.GNUTranslations): - __translation__.install(True) + __translation__.install(None) global __enabled__ __enabled__ = True @@ -103,4 +103,4 @@ def disable(): __enabled__ = False if __installed__: - gettext.NullTranslations().install(True) + gettext.NullTranslations().install(None)