We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 469dc2a commit c09a12eCopy full SHA for c09a12e
1 file changed
Lib/importlib/_bootstrap_external.py
@@ -1501,11 +1501,11 @@ def _find_children(self):
1501
yield entry.name
1502
# files
1503
if entry.is_file():
1504
- yield from [
+ yield from {
1505
entry.name.removesuffix(suffix)
1506
for suffix, _ in self._loaders
1507
if entry.name.endswith(suffix)
1508
- ]
+ }
1509
except OSError:
1510
pass # ignore exceptions from next(scan_iterator) and os.DirEntry
1511
except StopIteration:
0 commit comments