mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +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
|
@ -30,7 +30,7 @@ import warnings
|
|||
|
||||
warnings.warn("the imp module is deprecated in favour of importlib; "
|
||||
"see the module's documentation for alternative uses",
|
||||
PendingDeprecationWarning, stacklevel=2)
|
||||
DeprecationWarning, stacklevel=2)
|
||||
|
||||
# DEPRECATED
|
||||
SEARCH_ERROR = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue