Skip to content

Commit 1ef673b

Browse files
[Backport maintenance/3.3.x] Fix flagging undeprecated importlib.resources functions (#10605)
(cherry picked from commit f941edd) Co-authored-by: Akshay <153769403+Akshay9715@users.noreply.github.com>
1 parent 194790c commit 1ef673b

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
No longer flag undeprecated functions in ``importlib.resources`` as deprecated.
2+
3+
Closes #10593

pylint/checkers/stdlib.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,6 @@
238238
"binascii.a2b_hqx",
239239
"binascii.rlecode_hqx",
240240
"binascii.rledecode_hqx",
241-
"importlib.resources.contents",
242-
"importlib.resources.is_resource",
243-
"importlib.resources.open_binary",
244-
"importlib.resources.open_text",
245-
"importlib.resources.path",
246-
"importlib.resources.read_binary",
247-
"importlib.resources.read_text",
248241
},
249242
(3, 10, 0): {
250243
"_sqlite3.enable_shared_cache",
@@ -264,6 +257,7 @@
264257
"cgi.log",
265258
},
266259
(3, 11, 0): {
260+
"importlib.resources.contents",
267261
"locale.getdefaultlocale",
268262
"locale.resetlocale",
269263
"re.template",

0 commit comments

Comments
 (0)