[pylint 'use-yield-from'] Fix all occurences in existing code

This commit is contained in:
Pierre Sassoulas 2024-05-27 22:18:59 +02:00
parent 383659d0be
commit db67d5c874
1 changed files with 2 additions and 4 deletions

View File

@ -161,15 +161,13 @@ class Visitor:
) )
if not self.breadthfirst: if not self.breadthfirst:
for subdir in dirs: for subdir in dirs:
for p in self.gen(subdir): yield from self.gen(subdir)
yield p
for p in self.optsort(entries): for p in self.optsort(entries):
if self.fil is None or self.fil(p): if self.fil is None or self.fil(p):
yield p yield p
if self.breadthfirst: if self.breadthfirst:
for subdir in dirs: for subdir in dirs:
for p in self.gen(subdir): yield from self.gen(subdir)
yield p
class FNMatcher: class FNMatcher: