diff options
author | Brett Cannon <brett@python.org> | 2021-04-03 22:31:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-03 22:31:15 (GMT) |
commit | dc6d3e1e4c0c1e4b2210edab8fb4762569dc2936 (patch) | |
tree | 80ae8d9059b68a4803a02c7269dba190f7596678 /Lib/pkgutil.py | |
parent | c5354c045c1067549554c35485a12afdcf88a202 (diff) | |
download | cpython-dc6d3e1e4c0c1e4b2210edab8fb4762569dc2936.zip cpython-dc6d3e1e4c0c1e4b2210edab8fb4762569dc2936.tar.gz cpython-dc6d3e1e4c0c1e4b2210edab8fb4762569dc2936.tar.bz2 |
bpo-43720: Update import-related stdlib deprecation messages to say they will be removed in Python 3.12 (GH-25167)
Diffstat (limited to 'Lib/pkgutil.py')
-rw-r--r-- | Lib/pkgutil.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py index 3d7f19f..2c34298 100644 --- a/Lib/pkgutil.py +++ b/Lib/pkgutil.py @@ -204,7 +204,8 @@ class ImpImporter: def __init__(self, path=None): global imp - warnings.warn("This emulation is deprecated, use 'importlib' instead", + warnings.warn("This emulation is deprecated and slated for removal " + "in Python 3.12; use 'importlib' instead", DeprecationWarning) _import_imp() self.path = path @@ -271,7 +272,8 @@ class ImpLoader: code = source = None def __init__(self, fullname, file, filename, etc): - warnings.warn("This emulation is deprecated, use 'importlib' instead", + warnings.warn("This emulation is deprecated and slated for removal in " + "Python 3.12; use 'importlib' instead", DeprecationWarning) _import_imp() self.file = file |