* pygnulib/GLEmiter.py (GLEmiter.autoconfSnippet): Change conditional.
* pygnulib/GLModuleSystem.py (GLModuleTable.addConditional): Likewise.
+2024-04-16 Collin Funk <collin.funk1@gmail.com>
+
+ gnulib-tool.py: Prefer 'not in' over 'not ... in'.
+ * pygnulib/GLEmiter.py (GLEmiter.autoconfSnippet): Change conditional.
+ * pygnulib/GLModuleSystem.py (GLModuleTable.addConditional): Likewise.
+
2024-04-16 Collin Funk <collin.funk1@gmail.com>
gnulib-tool.py: Make data structures more clear.
if str(module) in ['gnumakefile', 'maintainer-makefile']:
# These modules are meant to be used only in the top-level directory.
flag = toplevel
- else: # if not str(module) in ['gnumakefile', 'maintainer-makefile']
+ else: # if str(module) not in ['gnumakefile', 'maintainer-makefile']
flag = True
if flag:
snippet = module.getAutoconfSnippet()
if not (type(condition) is str or condition == True):
raise TypeError('condition must be a string or True, not %s'
% type(condition).__name__)
- if not str(module) in self.unconditionals:
+ if str(module) not in self.unconditionals:
# No unconditional dependency to the given module is known at this point.
if str(module) not in self.dependers:
self.dependers[str(module)] = []