summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idlever.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/idlever.py')
-rw-r--r--Lib/idlelib/idlever.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/Lib/idlelib/idlever.py b/Lib/idlelib/idlever.py
index 563d933..13c68b8 100644
--- a/Lib/idlelib/idlever.py
+++ b/Lib/idlelib/idlever.py
@@ -1,4 +1,12 @@
-"""Unused by Idle: there is no separate Idle version anymore.
-Kept only for possible existing extension use."""
+"""
+The separate Idle version was eliminated years ago;
+idlelib.idlever is no longer used by Idle
+and will be removed in 3.6 or later. Use
+ from sys import version
+ IDLE_VERSION = version[:version.index(' ')]
+"""
+# Kept for now only for possible existing extension use
+import warnings as w
+w.warn(__doc__, DeprecationWarning)
from sys import version
IDLE_VERSION = version[:version.index(' ')]