Package: gitinspector / 0.4.4+dfsg-15

Drop-superfluous-argument-to-NullTranslations.install.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From: Christian Kastner <ckk@kvr.at>
Date: Mon, 30 Mar 2020 19:59:59 +0200
Subject: Drop superfluous argument to NullTranslations.install()

The given argument of True wasn't valid, and triggers an exception with
Python3.8.
---
 gitinspector/localization.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gitinspector/localization.py b/gitinspector/localization.py
index f9bebc9..549f221 100644
--- a/gitinspector/localization.py
+++ b/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()