* pygnulib/GLConfig.py (GLConfig.addAvoid): Don't remove duplicates from
the modules passed with --avoid.
+2024-04-07 Collin Funk <collin.funk1@gmail.com>
+
+ gnulib-tool.py: Don't remove duplicate avoided modules.
+ * pygnulib/GLConfig.py (GLConfig.addAvoid): Don't remove duplicates from
+ the modules passed with --avoid.
+
2024-04-07 Bruno Haible <bruno@clisp.org>
sigsegv tests: Avoid a crash on NetBSD 10.0/i386.
'''Avoid including the given module. Useful if you have code that provides
equivalent functionality.'''
if type(module) is str:
- if module not in self.table['avoids']:
- self.table['avoids'].append(module)
+ self.table['avoids'].append(module)
else: # if module has not str type
raise TypeError('avoid must be a string, not %s'
% type(module).__name__)