pkgsrc/devel/py-gitinspector-devel/patches/patch-gitinspector_localization.py
wiz 295463f7fd py-gitinspector-devel: fix build
Using patch from py-gitinspector
2021-12-16 13:23:37 +00:00

31 lines
881 B
Python

$NetBSD: patch-gitinspector_localization.py,v 1.1 2021/12/16 13:23:37 wiz Exp $
Build fix for python >=3.8
https://github.com/ejwa/gitinspector/issues/216
--- gitinspector/localization.py.orig 2016-02-03 13:25:05.000000000 +0000
+++ gitinspector/localization.py
@@ -73,7 +73,7 @@ def init():
__enabled__ = True
__installed__ = True
- __translation__.install(True)
+ __translation__.install()
def check_compatibility(version):
if isinstance(__translation__, gettext.GNUTranslations):
@@ -98,7 +98,7 @@ def get_date():
def enable():
if isinstance(__translation__, gettext.GNUTranslations):
- __translation__.install(True)
+ __translation__.install()
global __enabled__
__enabled__ = True
@@ -108,4 +108,4 @@ def disable():
__enabled__ = False
if __installed__:
- gettext.NullTranslations().install(True)
+ gettext.NullTranslations().install()