Skip to content

Commit 0418205

Browse files
committed
Ignore other Python junk.
1 parent 7f8b376 commit 0418205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

referencing_loaders/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def from_traversable(root: Traversable) -> Iterable[tuple[URI, Resource[Any]]]:
6262
return _from_walked(
6363
each
6464
for each in _walk_traversable(root)
65-
if not each.name.endswith(".py")
65+
if not each.name.endswith((".py", ".pyc", ".pyo"))
6666
)
6767

6868

0 commit comments

Comments
 (0)