Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update loader.py #365

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update loader.py #365

wants to merge 1 commit into from

Conversation

R0ttCyph3r
Copy link

As of python 3.12 imp module is depreciated and removed so wfuzz gives error for that

Summary of Changes:

  • Replaced imp.find_module and imp.load_module with importlib.util.spec_from_file_location and importlib.util.module_from_spec.
  • Updated the _load_py_from_file method to use importlib for loading the modules.

As of python 3.12 imp module is depreciated and removed so wfuzz gives error for that

### Summary of Changes:
- Replaced `imp.find_module` and `imp.load_module` with `importlib.util.spec_from_file_location` and `importlib.util.module_from_spec`.
- Updated the `_load_py_from_file` method to use `importlib` for loading the modules.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant