From f11ef06c27bbaaeb25cb83c3eadfba192531b52b Mon Sep 17 00:00:00 2001 From: j-t-1 <120829237+j-t-1@users.noreply.github.com> Date: Thu, 5 Dec 2024 21:30:20 +0000 Subject: [PATCH] =?UTF-8?q?PEP=20488=20=E2=80=93=20Elimination=20of=20PYO?= =?UTF-8?q?=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Python 3.5 implememted PEP 488, eliminating .pyo files. --- volatility3/framework/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/volatility3/framework/__init__.py b/volatility3/framework/__init__.py index 4c09b4dae..23ea745de 100644 --- a/volatility3/framework/__init__.py +++ b/volatility3/framework/__init__.py @@ -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("__")