mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-06 09:47:38 +02:00
Merge pull request #1382 from j-t-1/PYO
PEP 488 – Elimination of PYO files
This commit is contained in:
@@ -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("__")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user