mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-17 20:35:40 +02:00
PEP 488 – Elimination of PYO files
Python 3.5 implememted PEP 488, eliminating .pyo files.
This commit is contained in:
@@ -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("__")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user