]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Coding style: Avoid bool().
authorBruno Haible <bruno@clisp.org>
Sat, 16 Mar 2024 13:19:06 +0000 (14:19 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 16 Mar 2024 13:19:06 +0000 (14:19 +0100)
* pygnulib/GLModuleSystem.py (GLModule): Write False instead of bool().

ChangeLog
pygnulib/GLModuleSystem.py

index 4f2e60f336bde36323bb6c632c44ee09dd4e19a6..64ea4b63e75c846f6c6317189bcb9d08b1ca1359 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
-2024-03-15  Collin Funk  <collin.funk1@gmail.com>
+2024-03-16  Bruno Haible  <bruno@clisp.org>
+
+       gnulib-tool.py: Coding style: Avoid bool().
+       * pygnulib/GLModuleSystem.py (GLModule): Write False instead of bool().
 
+2024-03-16  Collin Funk  <collin.funk1@gmail.com>
 
        gnulib-tool.py: Follow gnulib-tool changes, part 58.
        Follow gnulib-tool change
index ce2a60636c1a0c5993f3655c13c732423f2c3ba9..9ad4715d8b57a3c250f853cb866bcbc7d93c4433 100644 (file)
@@ -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<y'''
-        result = bool()
+        result = False
         if type(module) is GLModule:
             if self.path < module.path:
                 result = True