File: Stop-using-imp-module.patch

package info (click to toggle)
pyside2 5.15.16-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 35,452 kB
  • sloc: python: 223,888; cpp: 80,354; xml: 17,282; sh: 73; makefile: 39; javascript: 16
file content (32 lines) | stat: -rw-r--r-- 1,067 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From: Friedemann Kleint <Friedemann.Kleint@qt.io>
Date: Thu, 3 Sep 2020 11:14:55 +0200
Subject: Stop using imp module

Part of commit e796600c9663a26ccf1929aca8336eb0cb23fe5d.
---
 sources/shiboken2/tests/otherbinding/module_reload_test.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/sources/shiboken2/tests/otherbinding/module_reload_test.py b/sources/shiboken2/tests/otherbinding/module_reload_test.py
index 368425c..c63af18 100644
--- a/sources/shiboken2/tests/otherbinding/module_reload_test.py
+++ b/sources/shiboken2/tests/otherbinding/module_reload_test.py
@@ -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()