From: Bruno Haible Date: Sat, 16 Mar 2024 13:19:06 +0000 (+0100) Subject: gnulib-tool.py: Coding style: Avoid bool(). X-Git-Tag: v1.0~283 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=e08233e8830bec337d56bb44ab89f2b75913dee2;p=gnulib.git gnulib-tool.py: Coding style: Avoid bool(). * pygnulib/GLModuleSystem.py (GLModule): Write False instead of bool(). --- diff --git a/ChangeLog b/ChangeLog index 4f2e60f336..64ea4b63e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ -2024-03-15 Collin Funk +2024-03-16 Bruno Haible + + gnulib-tool.py: Coding style: Avoid bool(). + * pygnulib/GLModuleSystem.py (GLModule): Write False instead of bool(). +2024-03-16 Collin Funk gnulib-tool.py: Follow gnulib-tool changes, part 58. Follow gnulib-tool change diff --git a/pygnulib/GLModuleSystem.py b/pygnulib/GLModuleSystem.py index ce2a60636c..9ad4715d8b 100644 --- a/pygnulib/GLModuleSystem.py +++ b/pygnulib/GLModuleSystem.py @@ -228,7 +228,7 @@ class GLModule(object): def __eq__(self, module): '''x.__eq__(y) <==> x==y''' - result = bool() + result = False if type(module) is GLModule: if self.path == module.path: result = True @@ -236,7 +236,7 @@ class GLModule(object): def __ne__(self, module): '''x.__ne__(y) <==> x!=y''' - result = bool() + result = False if type(module) is GLModule: if self.path != module.path: result = True @@ -244,7 +244,7 @@ class GLModule(object): def __ge__(self, module): '''x.__ge__(y) <==> x>=y''' - result = bool() + result = False if type(module) is GLModule: if self.path >= module.path: result = True @@ -252,7 +252,7 @@ class GLModule(object): def __gt__(self, module): '''x.__gt__(y) <==> x>y''' - result = bool() + result = False if type(module) is GLModule: if self.path > module.path: result = True @@ -265,7 +265,7 @@ class GLModule(object): def __le__(self, module): '''x.__le__(y) <==> x<=y''' - result = bool() + result = False if type(module) is GLModule: if self.path <= module.path: result = True @@ -273,7 +273,7 @@ class GLModule(object): def __lt__(self, module): '''x.__lt__(y) <==> x