summaryrefslogtreecommitdiffstats
path: root/Lib/pkgutil.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2015-10-16 19:21:37 (GMT)
committerBrett Cannon <brett@python.org>2015-10-16 19:21:37 (GMT)
commitc0d91aff9a3b91307b26e8b7c34dfbf27bbdd43a (patch)
tree160a62668441c5264ab0e27e9900094e3006bbd3 /Lib/pkgutil.py
parentaa15ea4b4e15a5350c34fe1ef0b8761d92fd4688 (diff)
downloadcpython-c0d91aff9a3b91307b26e8b7c34dfbf27bbdd43a.zip
cpython-c0d91aff9a3b91307b26e8b7c34dfbf27bbdd43a.tar.gz
cpython-c0d91aff9a3b91307b26e8b7c34dfbf27bbdd43a.tar.bz2
Upgrade the imp module's deprecation to DeprecationWarning.
Diffstat (limited to 'Lib/pkgutil.py')
-rw-r--r--Lib/pkgutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py
index fc4a074..203d515 100644
--- a/Lib/pkgutil.py
+++ b/Lib/pkgutil.py
@@ -180,7 +180,7 @@ iter_importer_modules.register(
def _import_imp():
global imp
with warnings.catch_warnings():
- warnings.simplefilter('ignore', PendingDeprecationWarning)
+ warnings.simplefilter('ignore', DeprecationWarning)
imp = importlib.import_module('imp')
class ImpImporter: