Skip to content

imp module is deprecated in favour of importlib #919

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

Merged
merged 1 commit into from
Jan 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion winpython/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
OTHER DEALINGS IN THE SOFTWARE.
"""

__version__ = '3.1.20210109'
__version__ = '3.2.20210117'
__license__ = __doc__
__project_url__ = 'http://winpython.github.io/'
4 changes: 2 additions & 2 deletions winpython/wppm.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,9 @@ def get_installed_packages(self, update=False):
== self.target
):
# direct way: we interrogate ourself, using official API
import pkg_resources, imp
import pkg_resources, importlib

imp.reload(pkg_resources)
importlib.reload(pkg_resources)
pip_list = [
(i.key, i.version)
for i in pkg_resources.working_set
Expand Down