[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:
for subdir in dirs:
for p in self.gen(subdir):
yield p
yield from self.gen(subdir)
for p in self.optsort(entries):
if self.fil is None or self.fil(p):
yield p
if self.breadthfirst:
for subdir in dirs:
for p in self.gen(subdir):
yield p
yield from self.gen(subdir)
class FNMatcher: