You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After generating a Pyramid project from the master branch of the pyramid-cookiecutter-starter and running tests, a DeprecationWarning is output:
DeprecationWarning: the imp module is deprecated in favour of importlib ; see the module's documentation for alternative uses import imp
Bug Report
Describe the bug
After generating a Pyramid project from the master branch of the pyramid-cookiecutter-starter and running tests, a DeprecationWarning is output:
DeprecationWarning: the imp module is deprecated in favour of importlib ; see the module's documentation for alternative uses import imp
To Reproduce
Run through the steps starting at https://docs.pylonsproject.org/projects/pyramid/en/master/narr/project.html#creating-the-project and end with running tests.
Expected behavior
No deprecation warning.
Additional context
These lines need to be updated:
pyramid/src/pyramid/path.py
Lines 4 to 15 in 323cfbb
I'm not sure how to fix this one.
imp.get_suffixes()
andimp.C_EXTENSION
andimp.C_BUILTIN
don't have clear replacements inimportlib
. I'm guessing it has something to do withimportlib.machinery.all_suffixes()
,importlib.machinery.EXTENSION_SUFFIXES
, orimportlib.machinery.SOURCE_SUFFIXES
?The text was updated successfully, but these errors were encountered: