Stop using imp module
authorFriedemann Kleint <Friedemann.Kleint@qt.io>
Thu, 3 Sep 2020 09:14:55 +0000 (11:14 +0200)
committerDmitry Shachnev <mitya57@debian.org>
Tue, 25 Jun 2024 20:47:03 +0000 (23:47 +0300)
Part of commit e796600c9663a26ccf1929aca8336eb0cb23fe5d.

Gbp-Pq: Name Stop-using-imp-module.patch

sources/shiboken2/tests/otherbinding/module_reload_test.py

index 368425cd051f9c9656b0962ff8355dec81773566..c63af188ecb24cff7d0b2743699df8b7ae75c7bb 100644 (file)
@@ -29,6 +29,7 @@
 ##
 #############################################################################
 
+from importlib import reload
 import os
 import shutil
 import sys
@@ -38,10 +39,6 @@ sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
 from shiboken_paths import init_paths
 init_paths()
 
-from py3kcompat import IS_PY3K
-
-if IS_PY3K:
-    from imp import reload
 
 orig_path = os.path.join(os.path.dirname(__file__))
 workdir = os.getcwd()