PEP 488 – Elimination of PYO files

Python 3.5 implememted PEP 488, eliminating .pyo files.
This commit is contained in:
j-t-1
2024-12-05 21:30:20 +00:00
committed by GitHub
parent 5acf8858d9
commit f11ef06c27
+1 -2
View File
@@ -162,8 +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")
filename.endswith(".py") or filename.endswith(".pyc")
) and not filename.startswith("__")