File: 0001-Avoid-imp-module-use-importlib-instead.patch

package info (click to toggle)
python-jieba 0.42.1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 51,864 kB
  • sloc: python: 194,937; makefile: 16; sh: 3
file content (22 lines) | stat: -rw-r--r-- 554 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
From: Boyuan Yang <byang@debian.org>
Date: Mon, 5 Feb 2024 12:46:20 -0500
Subject: Avoid imp module use importlib instead

Bug-Debian: https://bugs.debian.org/1061753
---
 test/jieba_test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/jieba_test.py b/test/jieba_test.py
index 3c246cb..5646ca8 100644
--- a/test/jieba_test.py
+++ b/test/jieba_test.py
@@ -6,7 +6,7 @@ import unittest
 import types
 import jieba
 if sys.version_info[0] > 2:
-    from imp import reload
+    from importlib import reload
 
 jieba.initialize()