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

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