Issue #24199: Add stacklevel to deprecation warning call.
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 @@
 """
 # 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(' ')]