Skip to content

Commit

Permalink
Merge pull request volatilityfoundation#1382 from j-t-1/PYO
Browse files Browse the repository at this point in the history
PEP 488 – Elimination of PYO files
  • Loading branch information
ikelos authored Dec 6, 2024
2 parents 3ff304c + f11ef06 commit e2cdbdc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions volatility3/framework/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("__")


Expand Down

0 comments on commit e2cdbdc

Please sign in to comment.