diff options
author | Brett Cannon <brett@python.org> | 2015-03-27 16:56:57 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2015-03-27 16:56:57 (GMT) |
commit | 781692ff6af7747948b956eca9b435c9c93c3407 (patch) | |
tree | 4543dfed1935fa2aaf375db711c8a4b76c07f2dc /Lib/imp.py | |
parent | 79644f9c83b3cd992c16c6e1bd6c7a5fd49f24c0 (diff) | |
download | cpython-781692ff6af7747948b956eca9b435c9c93c3407.zip cpython-781692ff6af7747948b956eca9b435c9c93c3407.tar.gz cpython-781692ff6af7747948b956eca9b435c9c93c3407.tar.bz2 |
Fix module deprecation warnings to have a useful stacklevel
Diffstat (limited to 'Lib/imp.py')
-rw-r--r-- | Lib/imp.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -29,7 +29,7 @@ import warnings warnings.warn("the imp module is deprecated in favour of importlib; " "see the module's documentation for alternative uses", - PendingDeprecationWarning) + PendingDeprecationWarning, stacklevel=2) # DEPRECATED SEARCH_ERROR = 0 |