summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-09-20 06:33:57 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2015-09-20 06:33:57 (GMT)
commitedc041d826f1c9901ec26f7793fb8d2911980759 (patch)
tree97ab58367be2bf3fcb407bc549ba067b596ed79c
parent63550ee1a280ae667de3d1f0657f5b948ae73e12 (diff)
downloadcpython-edc041d826f1c9901ec26f7793fb8d2911980759.zip
cpython-edc041d826f1c9901ec26f7793fb8d2911980759.tar.gz
cpython-edc041d826f1c9901ec26f7793fb8d2911980759.tar.bz2
Issue #24199: Add stacklevel to deprecation warning call.
-rw-r--r--Lib/idlelib/idlever.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/idlever.py b/Lib/idlelib/idlever.py
index 13c68b8..3e9f69a 100644
--- a/Lib/idlelib/idlever.py
+++ b/Lib/idlelib/idlever.py
@@ -7,6 +7,6 @@ and will be removed in 3.6 or later. Use
"""
# Kept for now only for possible existing extension use
import warnings as w
-w.warn(__doc__, DeprecationWarning)
+w.warn(__doc__, DeprecationWarning, stacklevel=2)
from sys import version
IDLE_VERSION = version[:version.index(' ')]