Upgrade the imp module's deprecation to DeprecationWarning.

This commit is contained in:
Brett Cannon 2015-10-16 12:21:37 -07:00
parent aa15ea4b4e
commit c0d91aff9a
4 changed files with 7 additions and 2 deletions

View file

@ -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: