Skip to content

Load extension without imp#15

Draft
Mirochill wants to merge 1 commit into
flamewow:masterfrom
Mirochill:fix-14-importlib-loader
Draft

Load extension without imp#15
Mirochill wants to merge 1 commit into
flamewow:masterfrom
Mirochill:fix-14-importlib-loader

Conversation

@Mirochill

Copy link
Copy Markdown

Summary

  • load the _argon2 extension with importlib.util.find_spec() on modern Python
  • keep the existing imp.find_module() path only as a fallback for older Python versions without find_spec
  • raise the same import-style error when _argon2 cannot be found

Fixes #14

Validation

  • Not run locally

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.

No module named 'imp'

1 participant