-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
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
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
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
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
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
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