Skip to content

Commit c33d0f2

Browse files
committed
imp module is deprecated in favour of importlib
1 parent 88d664f commit c33d0f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

winpython/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
OTHER DEALINGS IN THE SOFTWARE.
2929
"""
3030

31-
__version__ = '3.1.20210109'
31+
__version__ = '3.2.20210117'
3232
__license__ = __doc__
3333
__project_url__ = 'http://winpython.github.io/'

winpython/wppm.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,9 @@ def get_installed_packages(self, update=False):
366366
== self.target
367367
):
368368
# direct way: we interrogate ourself, using official API
369-
import pkg_resources, imp
369+
import pkg_resources, importlib
370370

371-
imp.reload(pkg_resources)
371+
importlib.reload(pkg_resources)
372372
pip_list = [
373373
(i.key, i.version)
374374
for i in pkg_resources.working_set

0 commit comments

Comments
 (0)