mirror of
https://github.com/python/cpython.git
synced 2025-08-24 10:45:53 +00:00
Upgrade the imp module's deprecation to DeprecationWarning.
This commit is contained in:
parent
aa15ea4b4e
commit
c0d91aff9a
4 changed files with 7 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue