The first version flagged all Iterators that were not used, but this had too many false positives, mostly an internal database iterator class that has def __iter__(self): return self.
Apart from those false positives, this found one harmless bug in the main codebase.
The first version flagged all Iterators that were not used, but this had too many false positives, mostly an internal database iterator class that has
def __iter__(self): return self
.Apart from those false positives, this found one harmless bug in the main codebase.