* pygnulib/GLFileSystem.py (GLFileAssistant.removeFile): Remove this
unused function. The correct method of removing an element from a list
is to use the remove() function, not pop() which takes an index.
+2024-04-08 Collin Funk <collin.funk1@gmail.com>
+
+ gnulib-tool.py: Remove an unused and incorrect function.
+ * pygnulib/GLFileSystem.py (GLFileAssistant.removeFile): Remove this
+ unused function. The correct method of removing an element from a list
+ is to use the remove() function, not pop() which takes an index.
+
2024-04-08 Collin Funk <collin.funk1@gmail.com>
gnulib-tool.py: Omit some unnecessary list() calls around sorted().
if file not in self.added:
self.added += [file]
- def removeFile(self, file: str) -> None:
- '''Remove file from the list of added files.'''
- if file in self.added:
- self.added.pop(file)
-
def getFiles(self) -> list[str]:
'''Return list of the added files.'''
return list(self.added)