Merge pull request #1382 from j-t-1/PYO

PEP 488 – Elimination of PYO files
This commit is contained in:
ikelos
2024-12-06 00:26:21 +00:00
committed by GitHub
+1 -3
View File
@@ -162,9 +162,7 @@ def import_files(base_module, ignore_errors: bool = False) -> List[str]:
def _filter_files(filename: str):
"""Ensures that a filename traversed is an importable python file"""
return (
filename.endswith(".py")
or filename.endswith(".pyc")
or filename.endswith(".pyo")
filename.endswith(".py") or filename.endswith(".pyc")
) and not filename.startswith("__")