mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-93963: Remove usage of deprecated interface from importlib.abc. (#95217)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
8c88e360e7
commit
78eb3f79ea
3 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,7 @@ import typing
|
|||
import unittest
|
||||
|
||||
from importlib import resources
|
||||
from importlib.abc import Traversable
|
||||
from importlib.resources.abc import Traversable
|
||||
from . import data01
|
||||
from . import util
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ from pathlib import Path, PurePath
|
|||
|
||||
from . import data01
|
||||
from . import zipdata01
|
||||
from importlib.abc import ResourceReader
|
||||
from importlib.resources.abc import ResourceReader
|
||||
from test.support import import_helper
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Updated tests to use preferred location for ``importlib.resources`` ABCs.
|
Loading…
Add table
Add a link
Reference in a new issue